parent
fe03e1baac
commit
0ec70f1f50
@ -0,0 +1,652 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTicketSkuRuleAddRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookerInfoLimitation, "booker_info_limitation")
|
||||
*/
|
||||
private $bookerInfoLimitation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNotice, "booking_notice")
|
||||
*/
|
||||
private $bookingNotice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_OrderLimitation, "order_limitation")
|
||||
*/
|
||||
private $orderLimitation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_rule_id")
|
||||
*/
|
||||
private $outRuleId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfo, "provider_contact_info")
|
||||
*/
|
||||
private $providerContactInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitations, "refund_limitations")
|
||||
*/
|
||||
private $refundLimitations;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "rule_name")
|
||||
*/
|
||||
private $ruleName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_TravelerInfoLimitation, "traveler_info_limitation")
|
||||
*/
|
||||
private $travelerInfoLimitation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ValidLimitation, "valid_limitation")
|
||||
*/
|
||||
private $validLimitation;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation);
|
||||
$this->setUserParam($params, "booking_notice", $this->bookingNotice);
|
||||
$this->setUserParam($params, "order_limitation", $this->orderLimitation);
|
||||
$this->setUserParam($params, "out_rule_id", $this->outRuleId);
|
||||
$this->setUserParam($params, "provider_contact_info", $this->providerContactInfo);
|
||||
$this->setUserParam($params, "refund_limitations", $this->refundLimitations);
|
||||
$this->setUserParam($params, "rule_name", $this->ruleName);
|
||||
$this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation);
|
||||
$this->setUserParam($params, "valid_limitation", $this->validLimitation);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.ticket.sku.rule.add";
|
||||
}
|
||||
|
||||
public function setBookerInfoLimitation($bookerInfoLimitation)
|
||||
{
|
||||
$this->bookerInfoLimitation = $bookerInfoLimitation;
|
||||
}
|
||||
|
||||
public function setBookingNotice($bookingNotice)
|
||||
{
|
||||
$this->bookingNotice = $bookingNotice;
|
||||
}
|
||||
|
||||
public function setOrderLimitation($orderLimitation)
|
||||
{
|
||||
$this->orderLimitation = $orderLimitation;
|
||||
}
|
||||
|
||||
public function setOutRuleId($outRuleId)
|
||||
{
|
||||
$this->outRuleId = $outRuleId;
|
||||
}
|
||||
|
||||
public function setProviderContactInfo($providerContactInfo)
|
||||
{
|
||||
$this->providerContactInfo = $providerContactInfo;
|
||||
}
|
||||
|
||||
public function setRefundLimitations($refundLimitations)
|
||||
{
|
||||
$this->refundLimitations = $refundLimitations;
|
||||
}
|
||||
|
||||
public function setRuleName($ruleName)
|
||||
{
|
||||
$this->ruleName = $ruleName;
|
||||
}
|
||||
|
||||
public function setTravelerInfoLimitation($travelerInfoLimitation)
|
||||
{
|
||||
$this->travelerInfoLimitation = $travelerInfoLimitation;
|
||||
}
|
||||
|
||||
public function setValidLimitation($validLimitation)
|
||||
{
|
||||
$this->validLimitation = $validLimitation;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_BookerInfoLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "booker_required")
|
||||
*/
|
||||
private $bookerRequired;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
public function setBookerRequired($bookerRequired)
|
||||
{
|
||||
$this->bookerRequired = $bookerRequired;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_BookingNotice extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "enter_address")
|
||||
*/
|
||||
private $enterAddress;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem>, "enter_time")
|
||||
*/
|
||||
private $enterTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "enter_ways")
|
||||
*/
|
||||
private $enterWays;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "extra_desc")
|
||||
*/
|
||||
private $extraDesc;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "fee_include")
|
||||
*/
|
||||
private $feeInclude;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "fee_not_include")
|
||||
*/
|
||||
private $feeNotInclude;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "important_notice")
|
||||
*/
|
||||
private $importantNotice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "pass_time_limit")
|
||||
*/
|
||||
private $passTimeLimit;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ticket_place")
|
||||
*/
|
||||
private $ticketPlace;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem>, "ticket_time")
|
||||
*/
|
||||
private $ticketTime;
|
||||
|
||||
public function setEnterAddress($enterAddress)
|
||||
{
|
||||
$this->enterAddress = $enterAddress;
|
||||
}
|
||||
|
||||
public function setEnterTime($enterTime)
|
||||
{
|
||||
$this->enterTime = $enterTime;
|
||||
}
|
||||
|
||||
public function setEnterWays($enterWays)
|
||||
{
|
||||
$this->enterWays = $enterWays;
|
||||
}
|
||||
|
||||
public function setExtraDesc($extraDesc)
|
||||
{
|
||||
$this->extraDesc = $extraDesc;
|
||||
}
|
||||
|
||||
public function setFeeInclude($feeInclude)
|
||||
{
|
||||
$this->feeInclude = $feeInclude;
|
||||
}
|
||||
|
||||
public function setFeeNotInclude($feeNotInclude)
|
||||
{
|
||||
$this->feeNotInclude = $feeNotInclude;
|
||||
}
|
||||
|
||||
public function setImportantNotice($importantNotice)
|
||||
{
|
||||
$this->importantNotice = $importantNotice;
|
||||
}
|
||||
|
||||
public function setPassTimeLimit($passTimeLimit)
|
||||
{
|
||||
$this->passTimeLimit = $passTimeLimit;
|
||||
}
|
||||
|
||||
public function setTicketPlace($ticketPlace)
|
||||
{
|
||||
$this->ticketPlace = $ticketPlace;
|
||||
}
|
||||
|
||||
public function setTicketTime($ticketTime)
|
||||
{
|
||||
$this->ticketTime = $ticketTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "comment")
|
||||
*/
|
||||
private $comment;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "end_at")
|
||||
*/
|
||||
private $endAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "start_at")
|
||||
*/
|
||||
private $startAt;
|
||||
|
||||
public function setComment($comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
public function setEndAt($endAt)
|
||||
{
|
||||
$this->endAt = $endAt;
|
||||
}
|
||||
|
||||
public function setStartAt($startAt)
|
||||
{
|
||||
$this->startAt = $startAt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "comment")
|
||||
*/
|
||||
private $comment;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "end_at")
|
||||
*/
|
||||
private $endAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "start_at")
|
||||
*/
|
||||
private $startAt;
|
||||
|
||||
public function setComment($comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
public function setEndAt($endAt)
|
||||
{
|
||||
$this->endAt = $endAt;
|
||||
}
|
||||
|
||||
public function setStartAt($startAt)
|
||||
{
|
||||
$this->startAt = $startAt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_OrderLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "cycle_length")
|
||||
*/
|
||||
private $cycleLength;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "limitation_type")
|
||||
*/
|
||||
private $limitationType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "limit_cycle")
|
||||
*/
|
||||
private $limitCycle;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "limit_num")
|
||||
*/
|
||||
private $limitNum;
|
||||
|
||||
public function setCycleLength($cycleLength)
|
||||
{
|
||||
$this->cycleLength = $cycleLength;
|
||||
}
|
||||
|
||||
public function setLimitationType($limitationType)
|
||||
{
|
||||
$this->limitationType = $limitationType;
|
||||
}
|
||||
|
||||
public function setLimitCycle($limitCycle)
|
||||
{
|
||||
$this->limitCycle = $limitCycle;
|
||||
}
|
||||
|
||||
public function setLimitNum($limitNum)
|
||||
{
|
||||
$this->limitNum = $limitNum;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_ProviderContactInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour")
|
||||
*/
|
||||
private $providerBusinessHour;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "provider_name")
|
||||
*/
|
||||
private $providerName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "provider_telephone")
|
||||
*/
|
||||
private $providerTelephone;
|
||||
|
||||
public function setProviderBusinessHour($providerBusinessHour)
|
||||
{
|
||||
$this->providerBusinessHour = $providerBusinessHour;
|
||||
}
|
||||
|
||||
public function setProviderName($providerName)
|
||||
{
|
||||
$this->providerName = $providerName;
|
||||
}
|
||||
|
||||
public function setProviderTelephone($providerTelephone)
|
||||
{
|
||||
$this->providerTelephone = $providerTelephone;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "close_at")
|
||||
*/
|
||||
private $closeAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "open_at")
|
||||
*/
|
||||
private $openAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "time_info")
|
||||
*/
|
||||
private $timeInfo;
|
||||
|
||||
public function setCloseAt($closeAt)
|
||||
{
|
||||
$this->closeAt = $closeAt;
|
||||
}
|
||||
|
||||
public function setOpenAt($openAt)
|
||||
{
|
||||
$this->openAt = $openAt;
|
||||
}
|
||||
|
||||
public function setTimeInfo($timeInfo)
|
||||
{
|
||||
$this->timeInfo = $timeInfo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_RefundLimitations extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "is_refundable")
|
||||
*/
|
||||
private $isRefundable;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem>, "refund_rules")
|
||||
*/
|
||||
private $refundRules;
|
||||
|
||||
public function setIsRefundable($isRefundable)
|
||||
{
|
||||
$this->isRefundable = $isRefundable;
|
||||
}
|
||||
|
||||
public function setRefundRules($refundRules)
|
||||
{
|
||||
$this->refundRules = $refundRules;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ahead_time")
|
||||
*/
|
||||
private $aheadTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "deduction_fee")
|
||||
*/
|
||||
private $deductionFee;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "deduction_unit")
|
||||
*/
|
||||
private $deductionUnit;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "type")
|
||||
*/
|
||||
private $type;
|
||||
|
||||
public function setAheadTime($aheadTime)
|
||||
{
|
||||
$this->aheadTime = $aheadTime;
|
||||
}
|
||||
|
||||
public function setDeductionFee($deductionFee)
|
||||
{
|
||||
$this->deductionFee = $deductionFee;
|
||||
}
|
||||
|
||||
public function setDeductionUnit($deductionUnit)
|
||||
{
|
||||
$this->deductionUnit = $deductionUnit;
|
||||
}
|
||||
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_TravelerInfoLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "credential")
|
||||
*/
|
||||
private $credential;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "traveler_required")
|
||||
*/
|
||||
private $travelerRequired;
|
||||
|
||||
public function setCredential($credential)
|
||||
{
|
||||
$this->credential = $credential;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setTravelerRequired($travelerRequired)
|
||||
{
|
||||
$this->travelerRequired = $travelerRequired;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleAddRequest_ValidLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "days_time")
|
||||
*/
|
||||
private $daysTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "end_time")
|
||||
*/
|
||||
private $endTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "start_time")
|
||||
*/
|
||||
private $startTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "time_type")
|
||||
*/
|
||||
private $timeType;
|
||||
|
||||
public function setDaysTime($daysTime)
|
||||
{
|
||||
$this->daysTime = $daysTime;
|
||||
}
|
||||
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
|
||||
public function setTimeType($timeType)
|
||||
{
|
||||
$this->timeType = $timeType;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,674 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTicketSkuRuleEditRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookerInfoLimitation, "booker_info_limitation")
|
||||
*/
|
||||
private $bookerInfoLimitation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNotice, "booking_notice")
|
||||
*/
|
||||
private $bookingNotice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_OrderLimitation, "order_limitation")
|
||||
*/
|
||||
private $orderLimitation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_rule_id")
|
||||
*/
|
||||
private $outRuleId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ProviderContactInfo, "provider_contact_info")
|
||||
*/
|
||||
private $providerContactInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_RefundLimitations, "refund_limitations")
|
||||
*/
|
||||
private $refundLimitations;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "rule_id")
|
||||
*/
|
||||
private $ruleId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "rule_name")
|
||||
*/
|
||||
private $ruleName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "rule_version")
|
||||
*/
|
||||
private $ruleVersion;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_TravelerInfoLimitation, "traveler_info_limitation")
|
||||
*/
|
||||
private $travelerInfoLimitation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ValidLimitation, "valid_limitation")
|
||||
*/
|
||||
private $validLimitation;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation);
|
||||
$this->setUserParam($params, "booking_notice", $this->bookingNotice);
|
||||
$this->setUserParam($params, "order_limitation", $this->orderLimitation);
|
||||
$this->setUserParam($params, "out_rule_id", $this->outRuleId);
|
||||
$this->setUserParam($params, "provider_contact_info", $this->providerContactInfo);
|
||||
$this->setUserParam($params, "refund_limitations", $this->refundLimitations);
|
||||
$this->setUserParam($params, "rule_id", $this->ruleId);
|
||||
$this->setUserParam($params, "rule_name", $this->ruleName);
|
||||
$this->setUserParam($params, "rule_version", $this->ruleVersion);
|
||||
$this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation);
|
||||
$this->setUserParam($params, "valid_limitation", $this->validLimitation);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.ticket.sku.rule.edit";
|
||||
}
|
||||
|
||||
public function setBookerInfoLimitation($bookerInfoLimitation)
|
||||
{
|
||||
$this->bookerInfoLimitation = $bookerInfoLimitation;
|
||||
}
|
||||
|
||||
public function setBookingNotice($bookingNotice)
|
||||
{
|
||||
$this->bookingNotice = $bookingNotice;
|
||||
}
|
||||
|
||||
public function setOrderLimitation($orderLimitation)
|
||||
{
|
||||
$this->orderLimitation = $orderLimitation;
|
||||
}
|
||||
|
||||
public function setOutRuleId($outRuleId)
|
||||
{
|
||||
$this->outRuleId = $outRuleId;
|
||||
}
|
||||
|
||||
public function setProviderContactInfo($providerContactInfo)
|
||||
{
|
||||
$this->providerContactInfo = $providerContactInfo;
|
||||
}
|
||||
|
||||
public function setRefundLimitations($refundLimitations)
|
||||
{
|
||||
$this->refundLimitations = $refundLimitations;
|
||||
}
|
||||
|
||||
public function setRuleId($ruleId)
|
||||
{
|
||||
$this->ruleId = $ruleId;
|
||||
}
|
||||
|
||||
public function setRuleName($ruleName)
|
||||
{
|
||||
$this->ruleName = $ruleName;
|
||||
}
|
||||
|
||||
public function setRuleVersion($ruleVersion)
|
||||
{
|
||||
$this->ruleVersion = $ruleVersion;
|
||||
}
|
||||
|
||||
public function setTravelerInfoLimitation($travelerInfoLimitation)
|
||||
{
|
||||
$this->travelerInfoLimitation = $travelerInfoLimitation;
|
||||
}
|
||||
|
||||
public function setValidLimitation($validLimitation)
|
||||
{
|
||||
$this->validLimitation = $validLimitation;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_BookerInfoLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "booker_required")
|
||||
*/
|
||||
private $bookerRequired;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
public function setBookerRequired($bookerRequired)
|
||||
{
|
||||
$this->bookerRequired = $bookerRequired;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_BookingNotice extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "enter_address")
|
||||
*/
|
||||
private $enterAddress;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem>, "enter_time")
|
||||
*/
|
||||
private $enterTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "enter_ways")
|
||||
*/
|
||||
private $enterWays;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "extra_desc")
|
||||
*/
|
||||
private $extraDesc;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "fee_include")
|
||||
*/
|
||||
private $feeInclude;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "fee_not_include")
|
||||
*/
|
||||
private $feeNotInclude;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "important_notice")
|
||||
*/
|
||||
private $importantNotice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "pass_time_limit")
|
||||
*/
|
||||
private $passTimeLimit;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ticket_place")
|
||||
*/
|
||||
private $ticketPlace;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem>, "ticket_time")
|
||||
*/
|
||||
private $ticketTime;
|
||||
|
||||
public function setEnterAddress($enterAddress)
|
||||
{
|
||||
$this->enterAddress = $enterAddress;
|
||||
}
|
||||
|
||||
public function setEnterTime($enterTime)
|
||||
{
|
||||
$this->enterTime = $enterTime;
|
||||
}
|
||||
|
||||
public function setEnterWays($enterWays)
|
||||
{
|
||||
$this->enterWays = $enterWays;
|
||||
}
|
||||
|
||||
public function setExtraDesc($extraDesc)
|
||||
{
|
||||
$this->extraDesc = $extraDesc;
|
||||
}
|
||||
|
||||
public function setFeeInclude($feeInclude)
|
||||
{
|
||||
$this->feeInclude = $feeInclude;
|
||||
}
|
||||
|
||||
public function setFeeNotInclude($feeNotInclude)
|
||||
{
|
||||
$this->feeNotInclude = $feeNotInclude;
|
||||
}
|
||||
|
||||
public function setImportantNotice($importantNotice)
|
||||
{
|
||||
$this->importantNotice = $importantNotice;
|
||||
}
|
||||
|
||||
public function setPassTimeLimit($passTimeLimit)
|
||||
{
|
||||
$this->passTimeLimit = $passTimeLimit;
|
||||
}
|
||||
|
||||
public function setTicketPlace($ticketPlace)
|
||||
{
|
||||
$this->ticketPlace = $ticketPlace;
|
||||
}
|
||||
|
||||
public function setTicketTime($ticketTime)
|
||||
{
|
||||
$this->ticketTime = $ticketTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "comment")
|
||||
*/
|
||||
private $comment;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "end_at")
|
||||
*/
|
||||
private $endAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "start_at")
|
||||
*/
|
||||
private $startAt;
|
||||
|
||||
public function setComment($comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
public function setEndAt($endAt)
|
||||
{
|
||||
$this->endAt = $endAt;
|
||||
}
|
||||
|
||||
public function setStartAt($startAt)
|
||||
{
|
||||
$this->startAt = $startAt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "comment")
|
||||
*/
|
||||
private $comment;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "end_at")
|
||||
*/
|
||||
private $endAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "start_at")
|
||||
*/
|
||||
private $startAt;
|
||||
|
||||
public function setComment($comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
public function setEndAt($endAt)
|
||||
{
|
||||
$this->endAt = $endAt;
|
||||
}
|
||||
|
||||
public function setStartAt($startAt)
|
||||
{
|
||||
$this->startAt = $startAt;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_OrderLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "cycle_length")
|
||||
*/
|
||||
private $cycleLength;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "limitation_type")
|
||||
*/
|
||||
private $limitationType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "limit_cycle")
|
||||
*/
|
||||
private $limitCycle;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "limit_num")
|
||||
*/
|
||||
private $limitNum;
|
||||
|
||||
public function setCycleLength($cycleLength)
|
||||
{
|
||||
$this->cycleLength = $cycleLength;
|
||||
}
|
||||
|
||||
public function setLimitationType($limitationType)
|
||||
{
|
||||
$this->limitationType = $limitationType;
|
||||
}
|
||||
|
||||
public function setLimitCycle($limitCycle)
|
||||
{
|
||||
$this->limitCycle = $limitCycle;
|
||||
}
|
||||
|
||||
public function setLimitNum($limitNum)
|
||||
{
|
||||
$this->limitNum = $limitNum;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_ProviderContactInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour")
|
||||
*/
|
||||
private $providerBusinessHour;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "provider_name")
|
||||
*/
|
||||
private $providerName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "provider_telephone")
|
||||
*/
|
||||
private $providerTelephone;
|
||||
|
||||
public function setProviderBusinessHour($providerBusinessHour)
|
||||
{
|
||||
$this->providerBusinessHour = $providerBusinessHour;
|
||||
}
|
||||
|
||||
public function setProviderName($providerName)
|
||||
{
|
||||
$this->providerName = $providerName;
|
||||
}
|
||||
|
||||
public function setProviderTelephone($providerTelephone)
|
||||
{
|
||||
$this->providerTelephone = $providerTelephone;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "close_at")
|
||||
*/
|
||||
private $closeAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "open_at")
|
||||
*/
|
||||
private $openAt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "time_info")
|
||||
*/
|
||||
private $timeInfo;
|
||||
|
||||
public function setCloseAt($closeAt)
|
||||
{
|
||||
$this->closeAt = $closeAt;
|
||||
}
|
||||
|
||||
public function setOpenAt($openAt)
|
||||
{
|
||||
$this->openAt = $openAt;
|
||||
}
|
||||
|
||||
public function setTimeInfo($timeInfo)
|
||||
{
|
||||
$this->timeInfo = $timeInfo;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_RefundLimitations extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "is_refundable")
|
||||
*/
|
||||
private $isRefundable;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem>, "refund_rules")
|
||||
*/
|
||||
private $refundRules;
|
||||
|
||||
public function setIsRefundable($isRefundable)
|
||||
{
|
||||
$this->isRefundable = $isRefundable;
|
||||
}
|
||||
|
||||
public function setRefundRules($refundRules)
|
||||
{
|
||||
$this->refundRules = $refundRules;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ahead_time")
|
||||
*/
|
||||
private $aheadTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "deduction_fee")
|
||||
*/
|
||||
private $deductionFee;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "deduction_unit")
|
||||
*/
|
||||
private $deductionUnit;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "type")
|
||||
*/
|
||||
private $type;
|
||||
|
||||
public function setAheadTime($aheadTime)
|
||||
{
|
||||
$this->aheadTime = $aheadTime;
|
||||
}
|
||||
|
||||
public function setDeductionFee($deductionFee)
|
||||
{
|
||||
$this->deductionFee = $deductionFee;
|
||||
}
|
||||
|
||||
public function setDeductionUnit($deductionUnit)
|
||||
{
|
||||
$this->deductionUnit = $deductionUnit;
|
||||
}
|
||||
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_TravelerInfoLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "credential")
|
||||
*/
|
||||
private $credential;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "traveler_required")
|
||||
*/
|
||||
private $travelerRequired;
|
||||
|
||||
public function setCredential($credential)
|
||||
{
|
||||
$this->credential = $credential;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setTravelerRequired($travelerRequired)
|
||||
{
|
||||
$this->travelerRequired = $travelerRequired;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTicketSkuRuleEditRequest_ValidLimitation extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "days_time")
|
||||
*/
|
||||
private $daysTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "end_time")
|
||||
*/
|
||||
private $endTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "start_time")
|
||||
*/
|
||||
private $startTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "time_type")
|
||||
*/
|
||||
private $timeType;
|
||||
|
||||
public function setDaysTime($daysTime)
|
||||
{
|
||||
$this->daysTime = $daysTime;
|
||||
}
|
||||
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
|
||||
public function setStartTime($startTime)
|
||||
{
|
||||
$this->startTime = $startTime;
|
||||
}
|
||||
|
||||
public function setTimeType($timeType)
|
||||
{
|
||||
$this->timeType = $timeType;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTicketSkuRuleGetRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "out_rule_id")
|
||||
*/
|
||||
private $outRuleId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "rule_id")
|
||||
*/
|
||||
private $ruleId;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "out_rule_id", $this->outRuleId);
|
||||
$this->setUserParam($params, "rule_id", $this->ruleId);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.ticket.sku.rule.get";
|
||||
}
|
||||
|
||||
public function setOutRuleId($outRuleId)
|
||||
{
|
||||
$this->outRuleId = $outRuleId;
|
||||
}
|
||||
|
||||
public function setRuleId($ruleId)
|
||||
{
|
||||
$this->ruleId = $ruleId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTicketVerificationNotifycationRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_no")
|
||||
*/
|
||||
private $orderNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "verify_time")
|
||||
*/
|
||||
private $verifyTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_no", $this->orderNo);
|
||||
$this->setUserParam($params, "verify_time", $this->verifyTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.ticket.verification.notifycation";
|
||||
}
|
||||
|
||||
public function setOrderNo($orderNo)
|
||||
{
|
||||
$this->orderNo = $orderNo;
|
||||
}
|
||||
|
||||
public function setVerifyTime($verifyTime)
|
||||
{
|
||||
$this->verifyTime = $verifyTime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTimeGetRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.time.get";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,171 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackChangeConfirmRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(Integer, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_order_id")
|
||||
*/
|
||||
private $crhOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "gate_no")
|
||||
*/
|
||||
private $gateNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackChangeConfirmRequest_NewPassengersItem>, "new_passengers")
|
||||
*/
|
||||
private $newPassengers;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "crh_order_id", $this->crhOrderId);
|
||||
$this->setUserParam($params, "gate_no", $this->gateNo);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "new_passengers", $this->newPassengers);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.change.confirm";
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setCrhOrderId($crhOrderId)
|
||||
{
|
||||
$this->crhOrderId = $crhOrderId;
|
||||
}
|
||||
|
||||
public function setGateNo($gateNo)
|
||||
{
|
||||
$this->gateNo = $gateNo;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setNewPassengers($newPassengers)
|
||||
{
|
||||
$this->newPassengers = $newPassengers;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCallbackChangeConfirmRequest_NewPassengersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_order_id")
|
||||
*/
|
||||
private $newSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_pdd_order_id")
|
||||
*/
|
||||
private $newSubPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "old_sub_order_id")
|
||||
*/
|
||||
private $oldSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "old_sub_pdd_order_id")
|
||||
*/
|
||||
private $oldSubPddOrderId;
|
||||
|
||||
public function setNewSubOrderId($newSubOrderId)
|
||||
{
|
||||
$this->newSubOrderId = $newSubOrderId;
|
||||
}
|
||||
|
||||
public function setNewSubPddOrderId($newSubPddOrderId)
|
||||
{
|
||||
$this->newSubPddOrderId = $newSubPddOrderId;
|
||||
}
|
||||
|
||||
public function setOldSubOrderId($oldSubOrderId)
|
||||
{
|
||||
$this->oldSubOrderId = $oldSubOrderId;
|
||||
}
|
||||
|
||||
public function setOldSubPddOrderId($oldSubPddOrderId)
|
||||
{
|
||||
$this->oldSubPddOrderId = $oldSubPddOrderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,362 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackChangeReserveRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_date")
|
||||
*/
|
||||
private $arriveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_time")
|
||||
*/
|
||||
private $arriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "change_pay")
|
||||
*/
|
||||
private $changePay;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "change_refund")
|
||||
*/
|
||||
private $changeRefund;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_order_id")
|
||||
*/
|
||||
private $crhOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_date")
|
||||
*/
|
||||
private $departDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_time")
|
||||
*/
|
||||
private $departTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackChangeReserveRequest_NewPassengersItem>, "new_passengers")
|
||||
*/
|
||||
private $newPassengers;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pay_limit_time")
|
||||
*/
|
||||
private $payLimitTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "request_id")
|
||||
*/
|
||||
private $requestId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "use_id_card_in")
|
||||
*/
|
||||
private $useIdCardIn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "arrive_date", $this->arriveDate);
|
||||
$this->setUserParam($params, "arrive_station", $this->arriveStation);
|
||||
$this->setUserParam($params, "arrive_time", $this->arriveTime);
|
||||
$this->setUserParam($params, "change_pay", $this->changePay);
|
||||
$this->setUserParam($params, "change_refund", $this->changeRefund);
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "crh_order_id", $this->crhOrderId);
|
||||
$this->setUserParam($params, "depart_date", $this->departDate);
|
||||
$this->setUserParam($params, "depart_station", $this->departStation);
|
||||
$this->setUserParam($params, "depart_time", $this->departTime);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "new_passengers", $this->newPassengers);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "pay_limit_time", $this->payLimitTime);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "request_id", $this->requestId);
|
||||
$this->setUserParam($params, "train_no", $this->trainNo);
|
||||
$this->setUserParam($params, "use_id_card_in", $this->useIdCardIn);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.change.reserve";
|
||||
}
|
||||
|
||||
public function setArriveDate($arriveDate)
|
||||
{
|
||||
$this->arriveDate = $arriveDate;
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
public function setArriveTime($arriveTime)
|
||||
{
|
||||
$this->arriveTime = $arriveTime;
|
||||
}
|
||||
|
||||
public function setChangePay($changePay)
|
||||
{
|
||||
$this->changePay = $changePay;
|
||||
}
|
||||
|
||||
public function setChangeRefund($changeRefund)
|
||||
{
|
||||
$this->changeRefund = $changeRefund;
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setCrhOrderId($crhOrderId)
|
||||
{
|
||||
$this->crhOrderId = $crhOrderId;
|
||||
}
|
||||
|
||||
public function setDepartDate($departDate)
|
||||
{
|
||||
$this->departDate = $departDate;
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setDepartTime($departTime)
|
||||
{
|
||||
$this->departTime = $departTime;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setNewPassengers($newPassengers)
|
||||
{
|
||||
$this->newPassengers = $newPassengers;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPayLimitTime($payLimitTime)
|
||||
{
|
||||
$this->payLimitTime = $payLimitTime;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setUseIdCardIn($useIdCardIn)
|
||||
{
|
||||
$this->useIdCardIn = $useIdCardIn;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCallbackChangeReserveRequest_NewPassengersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "coach_name")
|
||||
*/
|
||||
private $coachName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "coach_no")
|
||||
*/
|
||||
private $coachNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_order_id")
|
||||
*/
|
||||
private $newSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_pdd_order_id")
|
||||
*/
|
||||
private $newSubPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "old_sub_order_id")
|
||||
*/
|
||||
private $oldSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "old_sub_pdd_order_id")
|
||||
*/
|
||||
private $oldSubPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "seat_name")
|
||||
*/
|
||||
private $seatName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_crh_order_id")
|
||||
*/
|
||||
private $subCrhOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
public function setCoachName($coachName)
|
||||
{
|
||||
$this->coachName = $coachName;
|
||||
}
|
||||
|
||||
public function setCoachNo($coachNo)
|
||||
{
|
||||
$this->coachNo = $coachNo;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setNewSubOrderId($newSubOrderId)
|
||||
{
|
||||
$this->newSubOrderId = $newSubOrderId;
|
||||
}
|
||||
|
||||
public function setNewSubPddOrderId($newSubPddOrderId)
|
||||
{
|
||||
$this->newSubPddOrderId = $newSubPddOrderId;
|
||||
}
|
||||
|
||||
public function setOldSubOrderId($oldSubOrderId)
|
||||
{
|
||||
$this->oldSubOrderId = $oldSubOrderId;
|
||||
}
|
||||
|
||||
public function setOldSubPddOrderId($oldSubPddOrderId)
|
||||
{
|
||||
$this->oldSubPddOrderId = $oldSubPddOrderId;
|
||||
}
|
||||
|
||||
public function setSeatName($seatName)
|
||||
{
|
||||
$this->seatName = $seatName;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setSubCrhOrderId($subCrhOrderId)
|
||||
{
|
||||
$this->subCrhOrderId = $subCrhOrderId;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,121 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackConfirmPayRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(Integer, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_order_id")
|
||||
*/
|
||||
private $crhOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "gate_no")
|
||||
*/
|
||||
private $gateNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "request_id")
|
||||
*/
|
||||
private $requestId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "crh_order_id", $this->crhOrderId);
|
||||
$this->setUserParam($params, "gate_no", $this->gateNo);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "request_id", $this->requestId);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.confirm.pay";
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setCrhOrderId($crhOrderId)
|
||||
{
|
||||
$this->crhOrderId = $crhOrderId;
|
||||
}
|
||||
|
||||
public function setGateNo($gateNo)
|
||||
{
|
||||
$this->gateNo = $gateNo;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,437 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackGrabRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station_code")
|
||||
*/
|
||||
private $arriveStationCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_time")
|
||||
*/
|
||||
private $arriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_order_id")
|
||||
*/
|
||||
private $crhOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station_code")
|
||||
*/
|
||||
private $departStationCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_time")
|
||||
*/
|
||||
private $departTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "order_ticket_price")
|
||||
*/
|
||||
private $orderTicketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_time")
|
||||
*/
|
||||
private $orderTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackGrabRequest_PassengersItem>, "passengers")
|
||||
*/
|
||||
private $passengers;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_num")
|
||||
*/
|
||||
private $ticketNum;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_date")
|
||||
*/
|
||||
private $trainDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "travel_time")
|
||||
*/
|
||||
private $travelTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "end_time")
|
||||
*/
|
||||
private $endTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "channel")
|
||||
*/
|
||||
private $channel;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "id_card_check_in")
|
||||
*/
|
||||
private $idCardCheckIn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "gate_no")
|
||||
*/
|
||||
private $gateNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "distance")
|
||||
*/
|
||||
private $distance;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "arrive_station", $this->arriveStation);
|
||||
$this->setUserParam($params, "arrive_station_code", $this->arriveStationCode);
|
||||
$this->setUserParam($params, "arrive_time", $this->arriveTime);
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "crh_order_id", $this->crhOrderId);
|
||||
$this->setUserParam($params, "depart_station", $this->departStation);
|
||||
$this->setUserParam($params, "depart_station_code", $this->departStationCode);
|
||||
$this->setUserParam($params, "depart_time", $this->departTime);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "order_ticket_price", $this->orderTicketPrice);
|
||||
$this->setUserParam($params, "order_time", $this->orderTime);
|
||||
$this->setUserParam($params, "passengers", $this->passengers);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "ticket_num", $this->ticketNum);
|
||||
$this->setUserParam($params, "train_date", $this->trainDate);
|
||||
$this->setUserParam($params, "train_no", $this->trainNo);
|
||||
$this->setUserParam($params, "travel_time", $this->travelTime);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
$this->setUserParam($params, "end_time", $this->endTime);
|
||||
$this->setUserParam($params, "channel", $this->channel);
|
||||
$this->setUserParam($params, "id_card_check_in", $this->idCardCheckIn);
|
||||
$this->setUserParam($params, "gate_no", $this->gateNo);
|
||||
$this->setUserParam($params, "distance", $this->distance);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.grab";
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
public function setArriveStationCode($arriveStationCode)
|
||||
{
|
||||
$this->arriveStationCode = $arriveStationCode;
|
||||
}
|
||||
|
||||
public function setArriveTime($arriveTime)
|
||||
{
|
||||
$this->arriveTime = $arriveTime;
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setCrhOrderId($crhOrderId)
|
||||
{
|
||||
$this->crhOrderId = $crhOrderId;
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setDepartStationCode($departStationCode)
|
||||
{
|
||||
$this->departStationCode = $departStationCode;
|
||||
}
|
||||
|
||||
public function setDepartTime($departTime)
|
||||
{
|
||||
$this->departTime = $departTime;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setOrderTicketPrice($orderTicketPrice)
|
||||
{
|
||||
$this->orderTicketPrice = $orderTicketPrice;
|
||||
}
|
||||
|
||||
public function setOrderTime($orderTime)
|
||||
{
|
||||
$this->orderTime = $orderTime;
|
||||
}
|
||||
|
||||
public function setPassengers($passengers)
|
||||
{
|
||||
$this->passengers = $passengers;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setTicketNum($ticketNum)
|
||||
{
|
||||
$this->ticketNum = $ticketNum;
|
||||
}
|
||||
|
||||
public function setTrainDate($trainDate)
|
||||
{
|
||||
$this->trainDate = $trainDate;
|
||||
}
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setTravelTime($travelTime)
|
||||
{
|
||||
$this->travelTime = $travelTime;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
|
||||
public function setChannel($channel)
|
||||
{
|
||||
$this->channel = $channel;
|
||||
}
|
||||
|
||||
public function setIdCardCheckIn($idCardCheckIn)
|
||||
{
|
||||
$this->idCardCheckIn = $idCardCheckIn;
|
||||
}
|
||||
|
||||
public function setGateNo($gateNo)
|
||||
{
|
||||
$this->gateNo = $gateNo;
|
||||
}
|
||||
|
||||
public function setDistance($distance)
|
||||
{
|
||||
$this->distance = $distance;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCallbackGrabRequest_PassengersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "coach_no")
|
||||
*/
|
||||
private $coachNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "seat_name")
|
||||
*/
|
||||
private $seatName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "seat_no")
|
||||
*/
|
||||
private $seatNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "seat_type_name")
|
||||
*/
|
||||
private $seatTypeName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "status")
|
||||
*/
|
||||
private $status;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_order_id")
|
||||
*/
|
||||
private $subOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setCoachNo($coachNo)
|
||||
{
|
||||
$this->coachNo = $coachNo;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setSeatName($seatName)
|
||||
{
|
||||
$this->seatName = $seatName;
|
||||
}
|
||||
|
||||
public function setSeatNo($seatNo)
|
||||
{
|
||||
$this->seatNo = $seatNo;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setSeatTypeName($seatTypeName)
|
||||
{
|
||||
$this->seatTypeName = $seatTypeName;
|
||||
}
|
||||
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function setSubOrderId($subOrderId)
|
||||
{
|
||||
$this->subOrderId = $subOrderId;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,339 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackOtcbookRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_date")
|
||||
*/
|
||||
private $arriveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_time")
|
||||
*/
|
||||
private $arriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_order")
|
||||
*/
|
||||
private $crhOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_date")
|
||||
*/
|
||||
private $departDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_time")
|
||||
*/
|
||||
private $departTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackOtcbookRequest_PassengersItem>, "passengers")
|
||||
*/
|
||||
private $passengers;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "request_id")
|
||||
*/
|
||||
private $requestId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "use_id_card_in")
|
||||
*/
|
||||
private $useIdCardIn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "arrive_date", $this->arriveDate);
|
||||
$this->setUserParam($params, "arrive_station", $this->arriveStation);
|
||||
$this->setUserParam($params, "arrive_time", $this->arriveTime);
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "crh_order", $this->crhOrder);
|
||||
$this->setUserParam($params, "depart_date", $this->departDate);
|
||||
$this->setUserParam($params, "depart_station", $this->departStation);
|
||||
$this->setUserParam($params, "depart_time", $this->departTime);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "passengers", $this->passengers);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "request_id", $this->requestId);
|
||||
$this->setUserParam($params, "train_no", $this->trainNo);
|
||||
$this->setUserParam($params, "use_id_card_in", $this->useIdCardIn);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.otcbook";
|
||||
}
|
||||
|
||||
public function setArriveDate($arriveDate)
|
||||
{
|
||||
$this->arriveDate = $arriveDate;
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
public function setArriveTime($arriveTime)
|
||||
{
|
||||
$this->arriveTime = $arriveTime;
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setCrhOrder($crhOrder)
|
||||
{
|
||||
$this->crhOrder = $crhOrder;
|
||||
}
|
||||
|
||||
public function setDepartDate($departDate)
|
||||
{
|
||||
$this->departDate = $departDate;
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setDepartTime($departTime)
|
||||
{
|
||||
$this->departTime = $departTime;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPassengers($passengers)
|
||||
{
|
||||
$this->passengers = $passengers;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setUseIdCardIn($useIdCardIn)
|
||||
{
|
||||
$this->useIdCardIn = $useIdCardIn;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCallbackOtcbookRequest_PassengersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "coach_name")
|
||||
*/
|
||||
private $coachName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "seat_name")
|
||||
*/
|
||||
private $seatName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_position")
|
||||
*/
|
||||
private $seatPosition;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_crh_order")
|
||||
*/
|
||||
private $subCrhOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_order_id")
|
||||
*/
|
||||
private $subOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setCoachName($coachName)
|
||||
{
|
||||
$this->coachName = $coachName;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setSeatName($seatName)
|
||||
{
|
||||
$this->seatName = $seatName;
|
||||
}
|
||||
|
||||
public function setSeatPosition($seatPosition)
|
||||
{
|
||||
$this->seatPosition = $seatPosition;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setSubCrhOrder($subCrhOrder)
|
||||
{
|
||||
$this->subCrhOrder = $subCrhOrder;
|
||||
}
|
||||
|
||||
public function setSubOrderId($subOrderId)
|
||||
{
|
||||
$this->subOrderId = $subOrderId;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackRefundConfirmRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "refund_money")
|
||||
*/
|
||||
private $refundMoney;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "refund_type")
|
||||
*/
|
||||
private $refundType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "request_id")
|
||||
*/
|
||||
private $requestId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_order_id")
|
||||
*/
|
||||
private $subOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "card_no", $this->cardNo);
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "name", $this->name);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "refund_money", $this->refundMoney);
|
||||
$this->setUserParam($params, "refund_type", $this->refundType);
|
||||
$this->setUserParam($params, "request_id", $this->requestId);
|
||||
$this->setUserParam($params, "sub_order_id", $this->subOrderId);
|
||||
$this->setUserParam($params, "sub_pdd_order_id", $this->subPddOrderId);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.refund.confirm";
|
||||
}
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setRefundMoney($refundMoney)
|
||||
{
|
||||
$this->refundMoney = $refundMoney;
|
||||
}
|
||||
|
||||
public function setRefundType($refundType)
|
||||
{
|
||||
$this->refundType = $refundType;
|
||||
}
|
||||
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
|
||||
public function setSubOrderId($subOrderId)
|
||||
{
|
||||
$this->subOrderId = $subOrderId;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,350 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCallbackReserveRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_date")
|
||||
*/
|
||||
private $arriveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_time")
|
||||
*/
|
||||
private $arriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_order")
|
||||
*/
|
||||
private $crhOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_date")
|
||||
*/
|
||||
private $departDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_time")
|
||||
*/
|
||||
private $departTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "msg")
|
||||
*/
|
||||
private $msg;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCallbackReserveRequest_PassengersItem>, "passengers")
|
||||
*/
|
||||
private $passengers;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pay_limit_time")
|
||||
*/
|
||||
private $payLimitTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "request_id")
|
||||
*/
|
||||
private $requestId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "use_id_card_in")
|
||||
*/
|
||||
private $useIdCardIn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "vendor_time")
|
||||
*/
|
||||
private $vendorTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "arrive_date", $this->arriveDate);
|
||||
$this->setUserParam($params, "arrive_station", $this->arriveStation);
|
||||
$this->setUserParam($params, "arrive_time", $this->arriveTime);
|
||||
$this->setUserParam($params, "code", $this->code);
|
||||
$this->setUserParam($params, "crh_order", $this->crhOrder);
|
||||
$this->setUserParam($params, "depart_date", $this->departDate);
|
||||
$this->setUserParam($params, "depart_station", $this->departStation);
|
||||
$this->setUserParam($params, "depart_time", $this->departTime);
|
||||
$this->setUserParam($params, "msg", $this->msg);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "passengers", $this->passengers);
|
||||
$this->setUserParam($params, "pay_limit_time", $this->payLimitTime);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "request_id", $this->requestId);
|
||||
$this->setUserParam($params, "train_no", $this->trainNo);
|
||||
$this->setUserParam($params, "use_id_card_in", $this->useIdCardIn);
|
||||
$this->setUserParam($params, "vendor_time", $this->vendorTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.callback.reserve";
|
||||
}
|
||||
|
||||
public function setArriveDate($arriveDate)
|
||||
{
|
||||
$this->arriveDate = $arriveDate;
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
public function setArriveTime($arriveTime)
|
||||
{
|
||||
$this->arriveTime = $arriveTime;
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
|
||||
public function setCrhOrder($crhOrder)
|
||||
{
|
||||
$this->crhOrder = $crhOrder;
|
||||
}
|
||||
|
||||
public function setDepartDate($departDate)
|
||||
{
|
||||
$this->departDate = $departDate;
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setDepartTime($departTime)
|
||||
{
|
||||
$this->departTime = $departTime;
|
||||
}
|
||||
|
||||
public function setMsg($msg)
|
||||
{
|
||||
$this->msg = $msg;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPassengers($passengers)
|
||||
{
|
||||
$this->passengers = $passengers;
|
||||
}
|
||||
|
||||
public function setPayLimitTime($payLimitTime)
|
||||
{
|
||||
$this->payLimitTime = $payLimitTime;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setUseIdCardIn($useIdCardIn)
|
||||
{
|
||||
$this->useIdCardIn = $useIdCardIn;
|
||||
}
|
||||
|
||||
public function setVendorTime($vendorTime)
|
||||
{
|
||||
$this->vendorTime = $vendorTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCallbackReserveRequest_PassengersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "coach_name")
|
||||
*/
|
||||
private $coachName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "seat_name")
|
||||
*/
|
||||
private $seatName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_crh_order")
|
||||
*/
|
||||
private $subCrhOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_order_id")
|
||||
*/
|
||||
private $subOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "is_choose_seat")
|
||||
*/
|
||||
private $isChooseSeat;
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setCoachName($coachName)
|
||||
{
|
||||
$this->coachName = $coachName;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setSeatName($seatName)
|
||||
{
|
||||
$this->seatName = $seatName;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setSubCrhOrder($subCrhOrder)
|
||||
{
|
||||
$this->subCrhOrder = $subCrhOrder;
|
||||
}
|
||||
|
||||
public function setSubOrderId($subOrderId)
|
||||
{
|
||||
$this->subOrderId = $subOrderId;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
public function setIsChooseSeat($isChooseSeat)
|
||||
{
|
||||
$this->isChooseSeat = $isChooseSeat;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCancelChangeRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCancelChangeRequest_PassengerInfosItem>, "passenger_infos")
|
||||
*/
|
||||
private $passengerInfos;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.cancel.change";
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPassengerInfos($passengerInfos)
|
||||
{
|
||||
$this->passengerInfos = $passengerInfos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCancelChangeRequest_PassengerInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_order_Id")
|
||||
*/
|
||||
private $newSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "old_sub_order_id")
|
||||
*/
|
||||
private $oldSubOrderId;
|
||||
|
||||
public function setNewSubOrderId($newSubOrderId)
|
||||
{
|
||||
$this->newSubOrderId = $newSubOrderId;
|
||||
}
|
||||
|
||||
public function setOldSubOrderId($oldSubOrderId)
|
||||
{
|
||||
$this->oldSubOrderId = $oldSubOrderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCancelReserveRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.cancel.reserve";
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,304 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainChangeTicketRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_depart_station")
|
||||
*/
|
||||
private $newDepartStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_arrive_station")
|
||||
*/
|
||||
private $newArriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_train_date")
|
||||
*/
|
||||
private $newTrainDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_train_no")
|
||||
*/
|
||||
private $newTrainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_depart_time")
|
||||
*/
|
||||
private $newDepartTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_arrive_time")
|
||||
*/
|
||||
private $newArriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "new_seat_type")
|
||||
*/
|
||||
private $newSeatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_choose_seat")
|
||||
*/
|
||||
private $newChooseSeat;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainChangeTicketRequest_NewPassengerInfosItem>, "new_passenger_infos")
|
||||
*/
|
||||
private $newPassengerInfos;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "new_depart_station", $this->newDepartStation);
|
||||
$this->setUserParam($params, "new_arrive_station", $this->newArriveStation);
|
||||
$this->setUserParam($params, "new_train_date", $this->newTrainDate);
|
||||
$this->setUserParam($params, "new_train_no", $this->newTrainNo);
|
||||
$this->setUserParam($params, "new_depart_time", $this->newDepartTime);
|
||||
$this->setUserParam($params, "new_arrive_time", $this->newArriveTime);
|
||||
$this->setUserParam($params, "new_seat_type", $this->newSeatType);
|
||||
$this->setUserParam($params, "new_choose_seat", $this->newChooseSeat);
|
||||
$this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.change.ticket";
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setNewDepartStation($newDepartStation)
|
||||
{
|
||||
$this->newDepartStation = $newDepartStation;
|
||||
}
|
||||
|
||||
public function setNewArriveStation($newArriveStation)
|
||||
{
|
||||
$this->newArriveStation = $newArriveStation;
|
||||
}
|
||||
|
||||
public function setNewTrainDate($newTrainDate)
|
||||
{
|
||||
$this->newTrainDate = $newTrainDate;
|
||||
}
|
||||
|
||||
public function setNewTrainNo($newTrainNo)
|
||||
{
|
||||
$this->newTrainNo = $newTrainNo;
|
||||
}
|
||||
|
||||
public function setNewDepartTime($newDepartTime)
|
||||
{
|
||||
$this->newDepartTime = $newDepartTime;
|
||||
}
|
||||
|
||||
public function setNewArriveTime($newArriveTime)
|
||||
{
|
||||
$this->newArriveTime = $newArriveTime;
|
||||
}
|
||||
|
||||
public function setNewSeatType($newSeatType)
|
||||
{
|
||||
$this->newSeatType = $newSeatType;
|
||||
}
|
||||
|
||||
public function setNewChooseSeat($newChooseSeat)
|
||||
{
|
||||
$this->newChooseSeat = $newChooseSeat;
|
||||
}
|
||||
|
||||
public function setNewPassengerInfos($newPassengerInfos)
|
||||
{
|
||||
$this->newPassengerInfos = $newPassengerInfos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainChangeTicketRequest_NewPassengerInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_order_id")
|
||||
*/
|
||||
private $subOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_pdd_order_id")
|
||||
*/
|
||||
private $newSubPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "birthday")
|
||||
*/
|
||||
private $birthday;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "effective_date")
|
||||
*/
|
||||
private $effectiveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sex")
|
||||
*/
|
||||
private $sex;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "email")
|
||||
*/
|
||||
private $email;
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
public function setSubOrderId($subOrderId)
|
||||
{
|
||||
$this->subOrderId = $subOrderId;
|
||||
}
|
||||
|
||||
public function setNewSubPddOrderId($newSubPddOrderId)
|
||||
{
|
||||
$this->newSubPddOrderId = $newSubPddOrderId;
|
||||
}
|
||||
|
||||
public function setBirthday($birthday)
|
||||
{
|
||||
$this->birthday = $birthday;
|
||||
}
|
||||
|
||||
public function setEffectiveDate($effectiveDate)
|
||||
{
|
||||
$this->effectiveDate = $effectiveDate;
|
||||
}
|
||||
|
||||
public function setSex($sex)
|
||||
{
|
||||
$this->sex = $sex;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,116 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainConfirmChangeRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainConfirmChangeRequest_NewPassengerInfosItem>, "new_passenger_infos")
|
||||
*/
|
||||
private $newPassengerInfos;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "new_passenger_infos", $this->newPassengerInfos);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.confirm.change";
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setNewPassengerInfos($newPassengerInfos)
|
||||
{
|
||||
$this->newPassengerInfos = $newPassengerInfos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainConfirmChangeRequest_NewPassengerInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "new_sub_order_id")
|
||||
*/
|
||||
private $newSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "old_sub_order_Id")
|
||||
*/
|
||||
private $oldSubOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setNewSubOrderId($newSubOrderId)
|
||||
{
|
||||
$this->newSubOrderId = $newSubOrderId;
|
||||
}
|
||||
|
||||
public function setOldSubOrderId($oldSubOrderId)
|
||||
{
|
||||
$this->oldSubOrderId = $oldSubOrderId;
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainConfirmPayRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainConfirmPayRequest_OrderInfosItem>, "order_infos")
|
||||
*/
|
||||
private $orderInfos;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "order_infos", $this->orderInfos);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.confirm.pay";
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setOrderInfos($orderInfos)
|
||||
{
|
||||
$this->orderInfos = $orderInfos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainConfirmPayRequest_OrderInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "travel_sn")
|
||||
*/
|
||||
private $travelSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mall_order")
|
||||
*/
|
||||
private $mallOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
public function setTravelSn($travelSn)
|
||||
{
|
||||
$this->travelSn = $travelSn;
|
||||
}
|
||||
|
||||
public function setMallOrder($mallOrder)
|
||||
{
|
||||
$this->mallOrder = $mallOrder;
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,356 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCreateOtcbookRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_date")
|
||||
*/
|
||||
private $trainDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_time")
|
||||
*/
|
||||
private $departTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_time")
|
||||
*/
|
||||
private $arriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "accept_other_seat")
|
||||
*/
|
||||
private $acceptOtherSeat;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "accept_stand_seat")
|
||||
*/
|
||||
private $acceptStandSeat;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateOtcbookRequest_OtcChooseSeatItem>, "otc_choose_seat")
|
||||
*/
|
||||
private $otcChooseSeat;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateOtcbookRequest_PassengerInfosItem>, "passenger_infos")
|
||||
*/
|
||||
private $passengerInfos;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "request_id")
|
||||
*/
|
||||
private $requestId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "comment")
|
||||
*/
|
||||
private $comment;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "depart_station", $this->departStation);
|
||||
$this->setUserParam($params, "arrive_station", $this->arriveStation);
|
||||
$this->setUserParam($params, "train_date", $this->trainDate);
|
||||
$this->setUserParam($params, "train_no", $this->trainNo);
|
||||
$this->setUserParam($params, "depart_time", $this->departTime);
|
||||
$this->setUserParam($params, "arrive_time", $this->arriveTime);
|
||||
$this->setUserParam($params, "accept_other_seat", $this->acceptOtherSeat);
|
||||
$this->setUserParam($params, "accept_stand_seat", $this->acceptStandSeat);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "otc_choose_seat", $this->otcChooseSeat);
|
||||
$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
|
||||
$this->setUserParam($params, "request_id", $this->requestId);
|
||||
$this->setUserParam($params, "comment", $this->comment);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.create.otcbook";
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
public function setTrainDate($trainDate)
|
||||
{
|
||||
$this->trainDate = $trainDate;
|
||||
}
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setDepartTime($departTime)
|
||||
{
|
||||
$this->departTime = $departTime;
|
||||
}
|
||||
|
||||
public function setArriveTime($arriveTime)
|
||||
{
|
||||
$this->arriveTime = $arriveTime;
|
||||
}
|
||||
|
||||
public function setAcceptOtherSeat($acceptOtherSeat)
|
||||
{
|
||||
$this->acceptOtherSeat = $acceptOtherSeat;
|
||||
}
|
||||
|
||||
public function setAcceptStandSeat($acceptStandSeat)
|
||||
{
|
||||
$this->acceptStandSeat = $acceptStandSeat;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setOtcChooseSeat($otcChooseSeat)
|
||||
{
|
||||
$this->otcChooseSeat = $otcChooseSeat;
|
||||
}
|
||||
|
||||
public function setPassengerInfos($passengerInfos)
|
||||
{
|
||||
$this->passengerInfos = $passengerInfos;
|
||||
}
|
||||
|
||||
public function setRequestId($requestId)
|
||||
{
|
||||
$this->requestId = $requestId;
|
||||
}
|
||||
|
||||
public function setComment($comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCreateOtcbookRequest_OtcChooseSeatItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "otc_choose_seat_type")
|
||||
*/
|
||||
private $otcChooseSeatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "count")
|
||||
*/
|
||||
private $count;
|
||||
|
||||
public function setOtcChooseSeatType($otcChooseSeatType)
|
||||
{
|
||||
$this->otcChooseSeatType = $otcChooseSeatType;
|
||||
}
|
||||
|
||||
public function setCount($count)
|
||||
{
|
||||
$this->count = $count;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCreateOtcbookRequest_PassengerInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "birthday")
|
||||
*/
|
||||
private $birthday;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "effective_date")
|
||||
*/
|
||||
private $effectiveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sex")
|
||||
*/
|
||||
private $sex;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "email")
|
||||
*/
|
||||
private $email;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "comment")
|
||||
*/
|
||||
private $comment;
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setBirthday($birthday)
|
||||
{
|
||||
$this->birthday = $birthday;
|
||||
}
|
||||
|
||||
public function setEffectiveDate($effectiveDate)
|
||||
{
|
||||
$this->effectiveDate = $effectiveDate;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setSex($sex)
|
||||
{
|
||||
$this->sex = $sex;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
public function setComment($comment)
|
||||
{
|
||||
$this->comment = $comment;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,316 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainCreateReserveRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_date")
|
||||
*/
|
||||
private $trainDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_time")
|
||||
*/
|
||||
private $departTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_time")
|
||||
*/
|
||||
private $arriveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "no_seat")
|
||||
*/
|
||||
private $noSeat;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "choose_seat")
|
||||
*/
|
||||
private $chooseSeat;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_account")
|
||||
*/
|
||||
private $crhAccount;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_password")
|
||||
*/
|
||||
private $crhPassword;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "switch_account")
|
||||
*/
|
||||
private $switchAccount;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainCreateReserveRequest_PassengerInfosItem>, "passenger_infos")
|
||||
*/
|
||||
private $passengerInfos;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "depart_station", $this->departStation);
|
||||
$this->setUserParam($params, "arrive_station", $this->arriveStation);
|
||||
$this->setUserParam($params, "train_date", $this->trainDate);
|
||||
$this->setUserParam($params, "train_no", $this->trainNo);
|
||||
$this->setUserParam($params, "depart_time", $this->departTime);
|
||||
$this->setUserParam($params, "arrive_time", $this->arriveTime);
|
||||
$this->setUserParam($params, "no_seat", $this->noSeat);
|
||||
$this->setUserParam($params, "choose_seat", $this->chooseSeat);
|
||||
$this->setUserParam($params, "crh_account", $this->crhAccount);
|
||||
$this->setUserParam($params, "crh_password", $this->crhPassword);
|
||||
$this->setUserParam($params, "switch_account", $this->switchAccount);
|
||||
$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.create.reserve";
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
public function setTrainDate($trainDate)
|
||||
{
|
||||
$this->trainDate = $trainDate;
|
||||
}
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setDepartTime($departTime)
|
||||
{
|
||||
$this->departTime = $departTime;
|
||||
}
|
||||
|
||||
public function setArriveTime($arriveTime)
|
||||
{
|
||||
$this->arriveTime = $arriveTime;
|
||||
}
|
||||
|
||||
public function setNoSeat($noSeat)
|
||||
{
|
||||
$this->noSeat = $noSeat;
|
||||
}
|
||||
|
||||
public function setChooseSeat($chooseSeat)
|
||||
{
|
||||
$this->chooseSeat = $chooseSeat;
|
||||
}
|
||||
|
||||
public function setCrhAccount($crhAccount)
|
||||
{
|
||||
$this->crhAccount = $crhAccount;
|
||||
}
|
||||
|
||||
public function setCrhPassword($crhPassword)
|
||||
{
|
||||
$this->crhPassword = $crhPassword;
|
||||
}
|
||||
|
||||
public function setSwitchAccount($switchAccount)
|
||||
{
|
||||
$this->switchAccount = $switchAccount;
|
||||
}
|
||||
|
||||
public function setPassengerInfos($passengerInfos)
|
||||
{
|
||||
$this->passengerInfos = $passengerInfos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainCreateReserveRequest_PassengerInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "seat_type")
|
||||
*/
|
||||
private $seatType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "ticket_price")
|
||||
*/
|
||||
private $ticketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "birthday")
|
||||
*/
|
||||
private $birthday;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "effective_Date")
|
||||
*/
|
||||
private $effectiveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sex")
|
||||
*/
|
||||
private $sex;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "email")
|
||||
*/
|
||||
private $email;
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
public function setSeatType($seatType)
|
||||
{
|
||||
$this->seatType = $seatType;
|
||||
}
|
||||
|
||||
public function setTicketPrice($ticketPrice)
|
||||
{
|
||||
$this->ticketPrice = $ticketPrice;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setBirthday($birthday)
|
||||
{
|
||||
$this->birthday = $birthday;
|
||||
}
|
||||
|
||||
public function setEffectiveDate($effectiveDate)
|
||||
{
|
||||
$this->effectiveDate = $effectiveDate;
|
||||
}
|
||||
|
||||
public function setSex($sex)
|
||||
{
|
||||
$this->sex = $sex;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainGrabCancelRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.grab.cancel";
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,313 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainGrabCreateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "end_time")
|
||||
*/
|
||||
private $endTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<String>, "depart_dates")
|
||||
*/
|
||||
private $departDates;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "have_account")
|
||||
*/
|
||||
private $haveAccount;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_account")
|
||||
*/
|
||||
private $crhAccount;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "crh_password")
|
||||
*/
|
||||
private $crhPassword;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sum_ticket_price")
|
||||
*/
|
||||
private $sumTicketPrice;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<Integer>, "seat_types")
|
||||
*/
|
||||
private $seatTypes;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_TravelInfosItem>, "travel_infos")
|
||||
*/
|
||||
private $travelInfos;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTrainGrabCreateRequest_PassengerInfosItem>, "passenger_infos")
|
||||
*/
|
||||
private $passengerInfos;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
$this->setUserParam($params, "end_time", $this->endTime);
|
||||
$this->setUserParam($params, "depart_dates", $this->departDates);
|
||||
$this->setUserParam($params, "have_account", $this->haveAccount);
|
||||
$this->setUserParam($params, "crh_account", $this->crhAccount);
|
||||
$this->setUserParam($params, "crh_password", $this->crhPassword);
|
||||
$this->setUserParam($params, "sum_ticket_price", $this->sumTicketPrice);
|
||||
$this->setUserParam($params, "seat_types", $this->seatTypes);
|
||||
$this->setUserParam($params, "travel_infos", $this->travelInfos);
|
||||
$this->setUserParam($params, "passenger_infos", $this->passengerInfos);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.grab.create";
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
public function setEndTime($endTime)
|
||||
{
|
||||
$this->endTime = $endTime;
|
||||
}
|
||||
|
||||
public function setDepartDates($departDates)
|
||||
{
|
||||
$this->departDates = $departDates;
|
||||
}
|
||||
|
||||
public function setHaveAccount($haveAccount)
|
||||
{
|
||||
$this->haveAccount = $haveAccount;
|
||||
}
|
||||
|
||||
public function setCrhAccount($crhAccount)
|
||||
{
|
||||
$this->crhAccount = $crhAccount;
|
||||
}
|
||||
|
||||
public function setCrhPassword($crhPassword)
|
||||
{
|
||||
$this->crhPassword = $crhPassword;
|
||||
}
|
||||
|
||||
public function setSumTicketPrice($sumTicketPrice)
|
||||
{
|
||||
$this->sumTicketPrice = $sumTicketPrice;
|
||||
}
|
||||
|
||||
public function setSeatTypes($seatTypes)
|
||||
{
|
||||
$this->seatTypes = $seatTypes;
|
||||
}
|
||||
|
||||
public function setTravelInfos($travelInfos)
|
||||
{
|
||||
$this->travelInfos = $travelInfos;
|
||||
}
|
||||
|
||||
public function setPassengerInfos($passengerInfos)
|
||||
{
|
||||
$this->passengerInfos = $passengerInfos;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainGrabCreateRequest_TravelInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "train_no")
|
||||
*/
|
||||
private $trainNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "depart_station")
|
||||
*/
|
||||
private $departStation;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "arrive_station")
|
||||
*/
|
||||
private $arriveStation;
|
||||
|
||||
public function setTrainNo($trainNo)
|
||||
{
|
||||
$this->trainNo = $trainNo;
|
||||
}
|
||||
|
||||
public function setDepartStation($departStation)
|
||||
{
|
||||
$this->departStation = $departStation;
|
||||
}
|
||||
|
||||
public function setArriveStation($arriveStation)
|
||||
{
|
||||
$this->arriveStation = $arriveStation;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddTrainGrabCreateRequest_PassengerInfosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "card_type")
|
||||
*/
|
||||
private $cardType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "ticket_type")
|
||||
*/
|
||||
private $ticketType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sub_pdd_order_id")
|
||||
*/
|
||||
private $subPddOrderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "effective_date")
|
||||
*/
|
||||
private $effectiveDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "sex")
|
||||
*/
|
||||
private $sex;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "birthday")
|
||||
*/
|
||||
private $birthday;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "email")
|
||||
*/
|
||||
private $email;
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setCardType($cardType)
|
||||
{
|
||||
$this->cardType = $cardType;
|
||||
}
|
||||
|
||||
public function setTicketType($ticketType)
|
||||
{
|
||||
$this->ticketType = $ticketType;
|
||||
}
|
||||
|
||||
public function setSubPddOrderId($subPddOrderId)
|
||||
{
|
||||
$this->subPddOrderId = $subPddOrderId;
|
||||
}
|
||||
|
||||
public function setEffectiveDate($effectiveDate)
|
||||
{
|
||||
$this->effectiveDate = $effectiveDate;
|
||||
}
|
||||
|
||||
public function setSex($sex)
|
||||
{
|
||||
$this->sex = $sex;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
public function setBirthday($birthday)
|
||||
{
|
||||
$this->birthday = $birthday;
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainGrabOrderQueryRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_id")
|
||||
*/
|
||||
private $orderId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_id", $this->orderId);
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.grab.order.query";
|
||||
}
|
||||
|
||||
public function setOrderId($orderId)
|
||||
{
|
||||
$this->orderId = $orderId;
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainQueryOrderDetailRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "pdd_order_id")
|
||||
*/
|
||||
private $pddOrderId;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "pdd_order_id", $this->pddOrderId);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.query.order.detail";
|
||||
}
|
||||
|
||||
public function setPddOrderId($pddOrderId)
|
||||
{
|
||||
$this->pddOrderId = $pddOrderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddTrainTicketRefundRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "sub_order_id")
|
||||
*/
|
||||
private $subOrderId;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "sub_order_id", $this->subOrderId);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.train.ticket.refund";
|
||||
}
|
||||
|
||||
public function setSubOrderId($subOrderId)
|
||||
{
|
||||
$this->subOrderId = $subOrderId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,154 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVasOrderSearchRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(Long, "create_time_end")
|
||||
*/
|
||||
private $createTimeEnd;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "create_time_start")
|
||||
*/
|
||||
private $createTimeStart;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "mall_id")
|
||||
*/
|
||||
private $mallId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "order_status")
|
||||
*/
|
||||
private $orderStatus;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "page")
|
||||
*/
|
||||
private $page;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "page_size")
|
||||
*/
|
||||
private $pageSize;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "pay_time_end")
|
||||
*/
|
||||
private $payTimeEnd;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "pay_time_start")
|
||||
*/
|
||||
private $payTimeStart;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "sku_id")
|
||||
*/
|
||||
private $skuId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "refund_status")
|
||||
*/
|
||||
private $refundStatus;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "create_time_end", $this->createTimeEnd);
|
||||
$this->setUserParam($params, "create_time_start", $this->createTimeStart);
|
||||
$this->setUserParam($params, "mall_id", $this->mallId);
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "order_status", $this->orderStatus);
|
||||
$this->setUserParam($params, "page", $this->page);
|
||||
$this->setUserParam($params, "page_size", $this->pageSize);
|
||||
$this->setUserParam($params, "pay_time_end", $this->payTimeEnd);
|
||||
$this->setUserParam($params, "pay_time_start", $this->payTimeStart);
|
||||
$this->setUserParam($params, "sku_id", $this->skuId);
|
||||
$this->setUserParam($params, "refund_status", $this->refundStatus);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.vas.order.search";
|
||||
}
|
||||
|
||||
public function setCreateTimeEnd($createTimeEnd)
|
||||
{
|
||||
$this->createTimeEnd = $createTimeEnd;
|
||||
}
|
||||
|
||||
public function setCreateTimeStart($createTimeStart)
|
||||
{
|
||||
$this->createTimeStart = $createTimeStart;
|
||||
}
|
||||
|
||||
public function setMallId($mallId)
|
||||
{
|
||||
$this->mallId = $mallId;
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setOrderStatus($orderStatus)
|
||||
{
|
||||
$this->orderStatus = $orderStatus;
|
||||
}
|
||||
|
||||
public function setPage($page)
|
||||
{
|
||||
$this->page = $page;
|
||||
}
|
||||
|
||||
public function setPageSize($pageSize)
|
||||
{
|
||||
$this->pageSize = $pageSize;
|
||||
}
|
||||
|
||||
public function setPayTimeEnd($payTimeEnd)
|
||||
{
|
||||
$this->payTimeEnd = $payTimeEnd;
|
||||
}
|
||||
|
||||
public function setPayTimeStart($payTimeStart)
|
||||
{
|
||||
$this->payTimeStart = $payTimeStart;
|
||||
}
|
||||
|
||||
public function setSkuId($skuId)
|
||||
{
|
||||
$this->skuId = $skuId;
|
||||
}
|
||||
|
||||
public function setRefundStatus($refundStatus)
|
||||
{
|
||||
$this->refundStatus = $refundStatus;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVirtualGameServerQueryRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "goods_config_code")
|
||||
*/
|
||||
private $goodsConfigCode;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "goods_config_code", $this->goodsConfigCode);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.virtual.game.server.query";
|
||||
}
|
||||
|
||||
public function setGoodsConfigCode($goodsConfigCode)
|
||||
{
|
||||
$this->goodsConfigCode = $goodsConfigCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,157 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVirtualMobileChargeNotifyRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVirtualMobileChargeNotifyRequest_ChargeCertiItem>, "charge_certi")
|
||||
*/
|
||||
private $chargeCerti;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "outer_order_sn")
|
||||
*/
|
||||
private $outerOrderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "status")
|
||||
*/
|
||||
private $status;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "charge_certi", $this->chargeCerti);
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "outer_order_sn", $this->outerOrderSn);
|
||||
$this->setUserParam($params, "status", $this->status);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.virtual.mobile.charge.notify";
|
||||
}
|
||||
|
||||
public function setChargeCerti($chargeCerti)
|
||||
{
|
||||
$this->chargeCerti = $chargeCerti;
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setOuterOrderSn($outerOrderSn)
|
||||
{
|
||||
$this->outerOrderSn = $outerOrderSn;
|
||||
}
|
||||
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVirtualMobileChargeNotifyRequest_ChargeCertiItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "charge_certi_amount")
|
||||
*/
|
||||
private $chargeCertiAmount;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "charge_certi_date")
|
||||
*/
|
||||
private $chargeCertiDate;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "charge_certi_mobile")
|
||||
*/
|
||||
private $chargeCertiMobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "charge_certi_mobile_tail")
|
||||
*/
|
||||
private $chargeCertiMobileTail;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "charge_certi_order_sn")
|
||||
*/
|
||||
private $chargeCertiOrderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "charge_certi_text")
|
||||
*/
|
||||
private $chargeCertiText;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "merchant_outer_id")
|
||||
*/
|
||||
private $merchantOuterId;
|
||||
|
||||
public function setChargeCertiAmount($chargeCertiAmount)
|
||||
{
|
||||
$this->chargeCertiAmount = $chargeCertiAmount;
|
||||
}
|
||||
|
||||
public function setChargeCertiDate($chargeCertiDate)
|
||||
{
|
||||
$this->chargeCertiDate = $chargeCertiDate;
|
||||
}
|
||||
|
||||
public function setChargeCertiMobile($chargeCertiMobile)
|
||||
{
|
||||
$this->chargeCertiMobile = $chargeCertiMobile;
|
||||
}
|
||||
|
||||
public function setChargeCertiMobileTail($chargeCertiMobileTail)
|
||||
{
|
||||
$this->chargeCertiMobileTail = $chargeCertiMobileTail;
|
||||
}
|
||||
|
||||
public function setChargeCertiOrderSn($chargeCertiOrderSn)
|
||||
{
|
||||
$this->chargeCertiOrderSn = $chargeCertiOrderSn;
|
||||
}
|
||||
|
||||
public function setChargeCertiText($chargeCertiText)
|
||||
{
|
||||
$this->chargeCertiText = $chargeCertiText;
|
||||
}
|
||||
|
||||
public function setMerchantOuterId($merchantOuterId)
|
||||
{
|
||||
$this->merchantOuterId = $merchantOuterId;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherAppointmentInfoSendRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_biz_no")
|
||||
*/
|
||||
private $outBizNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherAppointmentInfoSendRequest_VoucherListItem>, "voucher_list")
|
||||
*/
|
||||
private $voucherList;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "logistics_type")
|
||||
*/
|
||||
private $logisticsType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "appointment_time")
|
||||
*/
|
||||
private $appointmentTime;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "out_biz_no", $this->outBizNo);
|
||||
$this->setUserParam($params, "voucher_list", $this->voucherList);
|
||||
$this->setUserParam($params, "logistics_type", $this->logisticsType);
|
||||
$this->setUserParam($params, "appointment_time", $this->appointmentTime);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.appointment.info.send";
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setOutBizNo($outBizNo)
|
||||
{
|
||||
$this->outBizNo = $outBizNo;
|
||||
}
|
||||
|
||||
public function setVoucherList($voucherList)
|
||||
{
|
||||
$this->voucherList = $voucherList;
|
||||
}
|
||||
|
||||
public function setLogisticsType($logisticsType)
|
||||
{
|
||||
$this->logisticsType = $logisticsType;
|
||||
}
|
||||
|
||||
public function setAppointmentTime($appointmentTime)
|
||||
{
|
||||
$this->appointmentTime = $appointmentTime;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVoucherAppointmentInfoSendRequest_VoucherListItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_id")
|
||||
*/
|
||||
private $voucherId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_no")
|
||||
*/
|
||||
private $voucherNo;
|
||||
|
||||
public function setVoucherId($voucherId)
|
||||
{
|
||||
$this->voucherId = $voucherId;
|
||||
}
|
||||
|
||||
public function setVoucherNo($voucherNo)
|
||||
{
|
||||
$this->voucherNo = $voucherNo;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherOtaCardVerificationRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "card_no")
|
||||
*/
|
||||
private $cardNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "store_id")
|
||||
*/
|
||||
private $storeId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "store_name")
|
||||
*/
|
||||
private $storeName;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "card_no", $this->cardNo);
|
||||
$this->setUserParam($params, "store_id", $this->storeId);
|
||||
$this->setUserParam($params, "store_name", $this->storeName);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.ota.card.verification";
|
||||
}
|
||||
|
||||
public function setCardNo($cardNo)
|
||||
{
|
||||
$this->cardNo = $cardNo;
|
||||
}
|
||||
|
||||
public function setStoreId($storeId)
|
||||
{
|
||||
$this->storeId = $storeId;
|
||||
}
|
||||
|
||||
public function setStoreName($storeName)
|
||||
{
|
||||
$this->storeName = $storeName;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,173 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherPhysicalGoodsSendRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_biz_no")
|
||||
*/
|
||||
private $outBizNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherPhysicalGoodsSendRequest_VoucherListItem>, "voucher_list")
|
||||
*/
|
||||
private $voucherList;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "logistics_type")
|
||||
*/
|
||||
private $logisticsType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "recipient")
|
||||
*/
|
||||
private $recipient;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "recipient_mobile")
|
||||
*/
|
||||
private $recipientMobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "recipient_address")
|
||||
*/
|
||||
private $recipientAddress;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logistics_no")
|
||||
*/
|
||||
private $logisticsNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logistics_company_id")
|
||||
*/
|
||||
private $logisticsCompanyId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logistics_company")
|
||||
*/
|
||||
private $logisticsCompany;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "out_biz_no", $this->outBizNo);
|
||||
$this->setUserParam($params, "voucher_list", $this->voucherList);
|
||||
$this->setUserParam($params, "logistics_type", $this->logisticsType);
|
||||
$this->setUserParam($params, "recipient", $this->recipient);
|
||||
$this->setUserParam($params, "recipient_mobile", $this->recipientMobile);
|
||||
$this->setUserParam($params, "recipient_address", $this->recipientAddress);
|
||||
$this->setUserParam($params, "logistics_no", $this->logisticsNo);
|
||||
$this->setUserParam($params, "logistics_company_id", $this->logisticsCompanyId);
|
||||
$this->setUserParam($params, "logistics_company", $this->logisticsCompany);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.physical.goods.send";
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setOutBizNo($outBizNo)
|
||||
{
|
||||
$this->outBizNo = $outBizNo;
|
||||
}
|
||||
|
||||
public function setVoucherList($voucherList)
|
||||
{
|
||||
$this->voucherList = $voucherList;
|
||||
}
|
||||
|
||||
public function setLogisticsType($logisticsType)
|
||||
{
|
||||
$this->logisticsType = $logisticsType;
|
||||
}
|
||||
|
||||
public function setRecipient($recipient)
|
||||
{
|
||||
$this->recipient = $recipient;
|
||||
}
|
||||
|
||||
public function setRecipientMobile($recipientMobile)
|
||||
{
|
||||
$this->recipientMobile = $recipientMobile;
|
||||
}
|
||||
|
||||
public function setRecipientAddress($recipientAddress)
|
||||
{
|
||||
$this->recipientAddress = $recipientAddress;
|
||||
}
|
||||
|
||||
public function setLogisticsNo($logisticsNo)
|
||||
{
|
||||
$this->logisticsNo = $logisticsNo;
|
||||
}
|
||||
|
||||
public function setLogisticsCompanyId($logisticsCompanyId)
|
||||
{
|
||||
$this->logisticsCompanyId = $logisticsCompanyId;
|
||||
}
|
||||
|
||||
public function setLogisticsCompany($logisticsCompany)
|
||||
{
|
||||
$this->logisticsCompany = $logisticsCompany;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVoucherPhysicalGoodsSendRequest_VoucherListItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_id")
|
||||
*/
|
||||
private $voucherId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_no")
|
||||
*/
|
||||
private $voucherNo;
|
||||
|
||||
public function setVoucherId($voucherId)
|
||||
{
|
||||
$this->voucherId = $voucherId;
|
||||
}
|
||||
|
||||
public function setVoucherNo($voucherNo)
|
||||
{
|
||||
$this->voucherNo = $voucherNo;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherRealtimeOrdernoGetRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherRealtimeOrdernoGetRequest_Data, "data")
|
||||
*/
|
||||
private $data;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "data", $this->data);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.realtime.orderno.get";
|
||||
}
|
||||
|
||||
public function setData($data)
|
||||
{
|
||||
$this->data = $data;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVoucherRealtimeOrdernoGetRequest_Data extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherVirtualCardVerificationRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherVirtualCardVerificationRequest_VoucherDataListItem>, "voucher_data_list")
|
||||
*/
|
||||
private $voucherDataList;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "voucher_data_list", $this->voucherDataList);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.virtual.card.verification";
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setVoucherDataList($voucherDataList)
|
||||
{
|
||||
$this->voucherDataList = $voucherDataList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVoucherVirtualCardVerificationRequest_VoucherDataListItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_trans_no")
|
||||
*/
|
||||
private $outTransNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "voucher_time")
|
||||
*/
|
||||
private $voucherTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "voucher_status")
|
||||
*/
|
||||
private $voucherStatus;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_no")
|
||||
*/
|
||||
private $voucherNo;
|
||||
|
||||
public function setOutTransNo($outTransNo)
|
||||
{
|
||||
$this->outTransNo = $outTransNo;
|
||||
}
|
||||
|
||||
public function setVoucherTime($voucherTime)
|
||||
{
|
||||
$this->voucherTime = $voucherTime;
|
||||
}
|
||||
|
||||
public function setVoucherStatus($voucherStatus)
|
||||
{
|
||||
$this->voucherStatus = $voucherStatus;
|
||||
}
|
||||
|
||||
public function setVoucherNo($voucherNo)
|
||||
{
|
||||
$this->voucherNo = $voucherNo;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,151 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherVoucherComplainRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_biz_no")
|
||||
*/
|
||||
private $outBizNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherVoucherComplainRequest_VoucherListItem>, "voucher_list")
|
||||
*/
|
||||
private $voucherList;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "complain_user")
|
||||
*/
|
||||
private $complainUser;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "complain_user_mobile")
|
||||
*/
|
||||
private $complainUserMobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "complain_content")
|
||||
*/
|
||||
private $complainContent;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<String>, "complain_attachment_list")
|
||||
*/
|
||||
private $complainAttachmentList;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "complain_type")
|
||||
*/
|
||||
private $complainType;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "out_biz_no", $this->outBizNo);
|
||||
$this->setUserParam($params, "voucher_list", $this->voucherList);
|
||||
$this->setUserParam($params, "complain_user", $this->complainUser);
|
||||
$this->setUserParam($params, "complain_user_mobile", $this->complainUserMobile);
|
||||
$this->setUserParam($params, "complain_content", $this->complainContent);
|
||||
$this->setUserParam($params, "complain_attachment_list", $this->complainAttachmentList);
|
||||
$this->setUserParam($params, "complain_type", $this->complainType);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.voucher.complain";
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setOutBizNo($outBizNo)
|
||||
{
|
||||
$this->outBizNo = $outBizNo;
|
||||
}
|
||||
|
||||
public function setVoucherList($voucherList)
|
||||
{
|
||||
$this->voucherList = $voucherList;
|
||||
}
|
||||
|
||||
public function setComplainUser($complainUser)
|
||||
{
|
||||
$this->complainUser = $complainUser;
|
||||
}
|
||||
|
||||
public function setComplainUserMobile($complainUserMobile)
|
||||
{
|
||||
$this->complainUserMobile = $complainUserMobile;
|
||||
}
|
||||
|
||||
public function setComplainContent($complainContent)
|
||||
{
|
||||
$this->complainContent = $complainContent;
|
||||
}
|
||||
|
||||
public function setComplainAttachmentList($complainAttachmentList)
|
||||
{
|
||||
$this->complainAttachmentList = $complainAttachmentList;
|
||||
}
|
||||
|
||||
public function setComplainType($complainType)
|
||||
{
|
||||
$this->complainType = $complainType;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVoucherVoucherComplainRequest_VoucherListItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_id")
|
||||
*/
|
||||
private $voucherId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_no")
|
||||
*/
|
||||
private $voucherNo;
|
||||
|
||||
public function setVoucherId($voucherId)
|
||||
{
|
||||
$this->voucherId = $voucherId;
|
||||
}
|
||||
|
||||
public function setVoucherNo($voucherNo)
|
||||
{
|
||||
$this->voucherNo = $voucherNo;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddVoucherVoucherInfoSendRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "order_sn")
|
||||
*/
|
||||
private $orderSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "out_biz_no")
|
||||
*/
|
||||
private $outBizNo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddVoucherVoucherInfoSendRequest_VoucherListItem>, "voucher_list")
|
||||
*/
|
||||
private $voucherList;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "order_sn", $this->orderSn);
|
||||
$this->setUserParam($params, "out_biz_no", $this->outBizNo);
|
||||
$this->setUserParam($params, "voucher_list", $this->voucherList);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.voucher.voucher.info.send";
|
||||
}
|
||||
|
||||
public function setOrderSn($orderSn)
|
||||
{
|
||||
$this->orderSn = $orderSn;
|
||||
}
|
||||
|
||||
public function setOutBizNo($outBizNo)
|
||||
{
|
||||
$this->outBizNo = $outBizNo;
|
||||
}
|
||||
|
||||
public function setVoucherList($voucherList)
|
||||
{
|
||||
$this->voucherList = $voucherList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddVoucherVoucherInfoSendRequest_VoucherListItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_id")
|
||||
*/
|
||||
private $voucherId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "voucher_no")
|
||||
*/
|
||||
private $voucherNo;
|
||||
|
||||
public function setVoucherId($voucherId)
|
||||
{
|
||||
$this->voucherId = $voucherId;
|
||||
}
|
||||
|
||||
public function setVoucherNo($voucherNo)
|
||||
{
|
||||
$this->voucherNo = $voucherNo;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,55 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWaybillCancelRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "waybill_code")
|
||||
*/
|
||||
private $waybillCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wp_code")
|
||||
*/
|
||||
private $wpCode;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "waybill_code", $this->waybillCode);
|
||||
$this->setUserParam($params, "wp_code", $this->wpCode);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.waybill.cancel";
|
||||
}
|
||||
|
||||
public function setWaybillCode($waybillCode)
|
||||
{
|
||||
$this->waybillCode = $waybillCode;
|
||||
}
|
||||
|
||||
public function setWpCode($wpCode)
|
||||
{
|
||||
$this->wpCode = $wpCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,554 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWaybillGetRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest, "param_waybill_cloud_print_apply_new_request")
|
||||
*/
|
||||
private $paramWaybillCloudPrintApplyNewRequest;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "param_waybill_cloud_print_apply_new_request", $this->paramWaybillCloudPrintApplyNewRequest);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.waybill.get";
|
||||
}
|
||||
|
||||
public function setParamWaybillCloudPrintApplyNewRequest($paramWaybillCloudPrintApplyNewRequest)
|
||||
{
|
||||
$this->paramWaybillCloudPrintApplyNewRequest = $paramWaybillCloudPrintApplyNewRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequest extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Boolean, "need_encrypt")
|
||||
*/
|
||||
private $needEncrypt;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender, "sender")
|
||||
*/
|
||||
private $sender;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem>, "trade_order_info_dtos")
|
||||
*/
|
||||
private $tradeOrderInfoDtos;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wp_code")
|
||||
*/
|
||||
private $wpCode;
|
||||
|
||||
public function setNeedEncrypt($needEncrypt)
|
||||
{
|
||||
$this->needEncrypt = $needEncrypt;
|
||||
}
|
||||
|
||||
public function setSender($sender)
|
||||
{
|
||||
$this->sender = $sender;
|
||||
}
|
||||
|
||||
public function setTradeOrderInfoDtos($tradeOrderInfoDtos)
|
||||
{
|
||||
$this->tradeOrderInfoDtos = $tradeOrderInfoDtos;
|
||||
}
|
||||
|
||||
public function setWpCode($wpCode)
|
||||
{
|
||||
$this->wpCode = $wpCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSender extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress, "address")
|
||||
*/
|
||||
private $address;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "phone")
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
public function setAddress($address)
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestSenderAddress extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "city")
|
||||
*/
|
||||
private $city;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "detail")
|
||||
*/
|
||||
private $detail;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "district")
|
||||
*/
|
||||
private $district;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "province")
|
||||
*/
|
||||
private $province;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "town")
|
||||
*/
|
||||
private $town;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
public function setCity($city)
|
||||
{
|
||||
$this->city = $city;
|
||||
}
|
||||
|
||||
public function setDetail($detail)
|
||||
{
|
||||
$this->detail = $detail;
|
||||
}
|
||||
|
||||
public function setDistrict($district)
|
||||
{
|
||||
$this->district = $district;
|
||||
}
|
||||
|
||||
public function setProvince($province)
|
||||
{
|
||||
$this->province = $province;
|
||||
}
|
||||
|
||||
public function setTown($town)
|
||||
{
|
||||
$this->town = $town;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logistics_services")
|
||||
*/
|
||||
private $logisticsServices;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "object_id")
|
||||
*/
|
||||
private $objectId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo, "order_info")
|
||||
*/
|
||||
private $orderInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo, "package_info")
|
||||
*/
|
||||
private $packageInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient, "recipient")
|
||||
*/
|
||||
private $recipient;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "template_url")
|
||||
*/
|
||||
private $templateUrl;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "user_id")
|
||||
*/
|
||||
private $userId;
|
||||
|
||||
public function setLogisticsServices($logisticsServices)
|
||||
{
|
||||
$this->logisticsServices = $logisticsServices;
|
||||
}
|
||||
|
||||
public function setObjectId($objectId)
|
||||
{
|
||||
$this->objectId = $objectId;
|
||||
}
|
||||
|
||||
public function setOrderInfo($orderInfo)
|
||||
{
|
||||
$this->orderInfo = $orderInfo;
|
||||
}
|
||||
|
||||
public function setPackageInfo($packageInfo)
|
||||
{
|
||||
$this->packageInfo = $packageInfo;
|
||||
}
|
||||
|
||||
public function setRecipient($recipient)
|
||||
{
|
||||
$this->recipient = $recipient;
|
||||
}
|
||||
|
||||
public function setTemplateUrl($templateUrl)
|
||||
{
|
||||
$this->templateUrl = $templateUrl;
|
||||
}
|
||||
|
||||
public function setUserId($userId)
|
||||
{
|
||||
$this->userId = $userId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemOrderInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "order_channels_type")
|
||||
*/
|
||||
private $orderChannelsType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<String>, "trade_order_list")
|
||||
*/
|
||||
private $tradeOrderList;
|
||||
|
||||
public function setOrderChannelsType($orderChannelsType)
|
||||
{
|
||||
$this->orderChannelsType = $orderChannelsType;
|
||||
}
|
||||
|
||||
public function setTradeOrderList($tradeOrderList)
|
||||
{
|
||||
$this->tradeOrderList = $tradeOrderList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "goods_description")
|
||||
*/
|
||||
private $goodsDescription;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "id")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem>, "items")
|
||||
*/
|
||||
private $items;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "packaging_description")
|
||||
*/
|
||||
private $packagingDescription;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "total_packages_count")
|
||||
*/
|
||||
private $totalPackagesCount;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "volume")
|
||||
*/
|
||||
private $volume;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "weight")
|
||||
*/
|
||||
private $weight;
|
||||
|
||||
public function setGoodsDescription($goodsDescription)
|
||||
{
|
||||
$this->goodsDescription = $goodsDescription;
|
||||
}
|
||||
|
||||
public function setId($id)
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
}
|
||||
|
||||
public function setPackagingDescription($packagingDescription)
|
||||
{
|
||||
$this->packagingDescription = $packagingDescription;
|
||||
}
|
||||
|
||||
public function setTotalPackagesCount($totalPackagesCount)
|
||||
{
|
||||
$this->totalPackagesCount = $totalPackagesCount;
|
||||
}
|
||||
|
||||
public function setVolume($volume)
|
||||
{
|
||||
$this->volume = $volume;
|
||||
}
|
||||
|
||||
public function setWeight($weight)
|
||||
{
|
||||
$this->weight = $weight;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemPackageInfoItemsItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "count")
|
||||
*/
|
||||
private $count;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
public function setCount($count)
|
||||
{
|
||||
$this->count = $count;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipient extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress, "address")
|
||||
*/
|
||||
private $address;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "phone")
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
public function setAddress($address)
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillGetRequest_ParamWaybillCloudPrintApplyNewRequestTradeOrderInfoDtosItemRecipientAddress extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "city")
|
||||
*/
|
||||
private $city;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "detail")
|
||||
*/
|
||||
private $detail;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "district")
|
||||
*/
|
||||
private $district;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "province")
|
||||
*/
|
||||
private $province;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "town")
|
||||
*/
|
||||
private $town;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
public function setCity($city)
|
||||
{
|
||||
$this->city = $city;
|
||||
}
|
||||
|
||||
public function setDetail($detail)
|
||||
{
|
||||
$this->detail = $detail;
|
||||
}
|
||||
|
||||
public function setDistrict($district)
|
||||
{
|
||||
$this->district = $district;
|
||||
}
|
||||
|
||||
public function setProvince($province)
|
||||
{
|
||||
$this->province = $province;
|
||||
}
|
||||
|
||||
public function setTown($town)
|
||||
{
|
||||
$this->town = $town;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWaybillQueryByWaybillcodeRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillQueryByWaybillcodeRequest_ParamListItem>, "param_list")
|
||||
*/
|
||||
private $paramList;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "param_list", $this->paramList);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.waybill.query.by.waybillcode";
|
||||
}
|
||||
|
||||
public function setParamList($paramList)
|
||||
{
|
||||
$this->paramList = $paramList;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillQueryByWaybillcodeRequest_ParamListItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "object_id")
|
||||
*/
|
||||
private $objectId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "waybill_code")
|
||||
*/
|
||||
private $waybillCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wp_code")
|
||||
*/
|
||||
private $wpCode;
|
||||
|
||||
public function setObjectId($objectId)
|
||||
{
|
||||
$this->objectId = $objectId;
|
||||
}
|
||||
|
||||
public function setWaybillCode($waybillCode)
|
||||
{
|
||||
$this->waybillCode = $waybillCode;
|
||||
}
|
||||
|
||||
public function setWpCode($wpCode)
|
||||
{
|
||||
$this->wpCode = $wpCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWaybillSearchRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(String, "wp_code")
|
||||
*/
|
||||
private $wpCode;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "wp_code", $this->wpCode);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.waybill.search";
|
||||
}
|
||||
|
||||
public function setWpCode($wpCode)
|
||||
{
|
||||
$this->wpCode = $wpCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,354 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWaybillUpdateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest, "param_waybill_cloud_print_update_request")
|
||||
*/
|
||||
private $paramWaybillCloudPrintUpdateRequest;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "param_waybill_cloud_print_update_request", $this->paramWaybillCloudPrintUpdateRequest);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.waybill.update";
|
||||
}
|
||||
|
||||
public function setParamWaybillCloudPrintUpdateRequest($paramWaybillCloudPrintUpdateRequest)
|
||||
{
|
||||
$this->paramWaybillCloudPrintUpdateRequest = $paramWaybillCloudPrintUpdateRequest;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequest extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "object_id")
|
||||
*/
|
||||
private $objectId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo, "package_info")
|
||||
*/
|
||||
private $packageInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient, "recipient")
|
||||
*/
|
||||
private $recipient;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender, "sender")
|
||||
*/
|
||||
private $sender;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "template_url")
|
||||
*/
|
||||
private $templateUrl;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "waybill_code")
|
||||
*/
|
||||
private $waybillCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wp_code")
|
||||
*/
|
||||
private $wpCode;
|
||||
|
||||
public function setObjectId($objectId)
|
||||
{
|
||||
$this->objectId = $objectId;
|
||||
}
|
||||
|
||||
public function setPackageInfo($packageInfo)
|
||||
{
|
||||
$this->packageInfo = $packageInfo;
|
||||
}
|
||||
|
||||
public function setRecipient($recipient)
|
||||
{
|
||||
$this->recipient = $recipient;
|
||||
}
|
||||
|
||||
public function setSender($sender)
|
||||
{
|
||||
$this->sender = $sender;
|
||||
}
|
||||
|
||||
public function setTemplateUrl($templateUrl)
|
||||
{
|
||||
$this->templateUrl = $templateUrl;
|
||||
}
|
||||
|
||||
public function setWaybillCode($waybillCode)
|
||||
{
|
||||
$this->waybillCode = $waybillCode;
|
||||
}
|
||||
|
||||
public function setWpCode($wpCode)
|
||||
{
|
||||
$this->wpCode = $wpCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem>, "items")
|
||||
*/
|
||||
private $items;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "volume")
|
||||
*/
|
||||
private $volume;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "weight")
|
||||
*/
|
||||
private $weight;
|
||||
|
||||
public function setItems($items)
|
||||
{
|
||||
$this->items = $items;
|
||||
}
|
||||
|
||||
public function setVolume($volume)
|
||||
{
|
||||
$this->volume = $volume;
|
||||
}
|
||||
|
||||
public function setWeight($weight)
|
||||
{
|
||||
$this->weight = $weight;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestPackageInfoItemsItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "count")
|
||||
*/
|
||||
private $count;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
public function setCount($count)
|
||||
{
|
||||
$this->count = $count;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipient extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress, "address")
|
||||
*/
|
||||
private $address;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "phone")
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
public function setAddress($address)
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestRecipientAddress extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "city")
|
||||
*/
|
||||
private $city;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "detail")
|
||||
*/
|
||||
private $detail;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "district")
|
||||
*/
|
||||
private $district;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "province")
|
||||
*/
|
||||
private $province;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "town")
|
||||
*/
|
||||
private $town;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "country")
|
||||
*/
|
||||
private $country;
|
||||
|
||||
public function setCity($city)
|
||||
{
|
||||
$this->city = $city;
|
||||
}
|
||||
|
||||
public function setDetail($detail)
|
||||
{
|
||||
$this->detail = $detail;
|
||||
}
|
||||
|
||||
public function setDistrict($district)
|
||||
{
|
||||
$this->district = $district;
|
||||
}
|
||||
|
||||
public function setProvince($province)
|
||||
{
|
||||
$this->province = $province;
|
||||
}
|
||||
|
||||
public function setTown($town)
|
||||
{
|
||||
$this->town = $town;
|
||||
}
|
||||
|
||||
public function setCountry($country)
|
||||
{
|
||||
$this->country = $country;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWaybillUpdateRequest_ParamWaybillCloudPrintUpdateRequestSender extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "phone")
|
||||
*/
|
||||
private $phone;
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,204 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsDeliveryorderConfirmRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderConfirmRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.deliveryorder.confirm";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsDeliveryorderConfirmRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "deliveryOrderCode")
|
||||
*/
|
||||
private $deliveryOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "expressCode")
|
||||
*/
|
||||
private $expressCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logisticsCode")
|
||||
*/
|
||||
private $logisticsCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logisticsName")
|
||||
*/
|
||||
private $logisticsName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderConfirmRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "outBizCode")
|
||||
*/
|
||||
private $outBizCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "status")
|
||||
*/
|
||||
private $status;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setDeliveryOrderCode($deliveryOrderCode)
|
||||
{
|
||||
$this->deliveryOrderCode = $deliveryOrderCode;
|
||||
}
|
||||
|
||||
public function setExpressCode($expressCode)
|
||||
{
|
||||
$this->expressCode = $expressCode;
|
||||
}
|
||||
|
||||
public function setLogisticsCode($logisticsCode)
|
||||
{
|
||||
$this->logisticsCode = $logisticsCode;
|
||||
}
|
||||
|
||||
public function setLogisticsName($logisticsName)
|
||||
{
|
||||
$this->logisticsName = $logisticsName;
|
||||
}
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOutBizCode($outBizCode)
|
||||
{
|
||||
$this->outBizCode = $outBizCode;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsDeliveryorderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "parentWareSn")
|
||||
*/
|
||||
private $parentWareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "quantity")
|
||||
*/
|
||||
private $quantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setParentWareSn($parentWareSn)
|
||||
{
|
||||
$this->parentWareSn = $parentWareSn;
|
||||
}
|
||||
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
$this->quantity = $quantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,244 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsDeliveryorderCreateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderCreateRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.deliveryorder.create";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsDeliveryorderCreateRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "createTime")
|
||||
*/
|
||||
private $createTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "deliveryOrderCode")
|
||||
*/
|
||||
private $deliveryOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderFlag")
|
||||
*/
|
||||
private $orderFlag;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "placeOrderTime")
|
||||
*/
|
||||
private $placeOrderTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "receiverCity")
|
||||
*/
|
||||
private $receiverCity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "receiverDetailAddress")
|
||||
*/
|
||||
private $receiverDetailAddress;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "receiverDistrict")
|
||||
*/
|
||||
private $receiverDistrict;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "receiverName")
|
||||
*/
|
||||
private $receiverName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "receiverPhone")
|
||||
*/
|
||||
private $receiverPhone;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "receiverProvince")
|
||||
*/
|
||||
private $receiverProvince;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "shopNick")
|
||||
*/
|
||||
private $shopNick;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
|
||||
public function setDeliveryOrderCode($deliveryOrderCode)
|
||||
{
|
||||
$this->deliveryOrderCode = $deliveryOrderCode;
|
||||
}
|
||||
|
||||
public function setOrderFlag($orderFlag)
|
||||
{
|
||||
$this->orderFlag = $orderFlag;
|
||||
}
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setPlaceOrderTime($placeOrderTime)
|
||||
{
|
||||
$this->placeOrderTime = $placeOrderTime;
|
||||
}
|
||||
|
||||
public function setReceiverCity($receiverCity)
|
||||
{
|
||||
$this->receiverCity = $receiverCity;
|
||||
}
|
||||
|
||||
public function setReceiverDetailAddress($receiverDetailAddress)
|
||||
{
|
||||
$this->receiverDetailAddress = $receiverDetailAddress;
|
||||
}
|
||||
|
||||
public function setReceiverDistrict($receiverDistrict)
|
||||
{
|
||||
$this->receiverDistrict = $receiverDistrict;
|
||||
}
|
||||
|
||||
public function setReceiverName($receiverName)
|
||||
{
|
||||
$this->receiverName = $receiverName;
|
||||
}
|
||||
|
||||
public function setReceiverPhone($receiverPhone)
|
||||
{
|
||||
$this->receiverPhone = $receiverPhone;
|
||||
}
|
||||
|
||||
public function setReceiverProvince($receiverProvince)
|
||||
{
|
||||
$this->receiverProvince = $receiverProvince;
|
||||
}
|
||||
|
||||
public function setShopNick($shopNick)
|
||||
{
|
||||
$this->shopNick = $shopNick;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsDeliveryorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "parentWareSn")
|
||||
*/
|
||||
private $parentWareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "quantity")
|
||||
*/
|
||||
private $quantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setParentWareSn($parentWareSn)
|
||||
{
|
||||
$this->parentWareSn = $parentWareSn;
|
||||
}
|
||||
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
$this->quantity = $quantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsDepotTicketAckRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(List<Long>, "ticketIds")
|
||||
*/
|
||||
private $ticketIds;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "ticketIds", $this->ticketIds);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.depot.ticket.ack";
|
||||
}
|
||||
|
||||
public function setTicketIds($ticketIds)
|
||||
{
|
||||
$this->ticketIds = $ticketIds;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,88 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsDepotTicketGetRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(Boolean, "notAck")
|
||||
*/
|
||||
private $notAck;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "createdAtGte")
|
||||
*/
|
||||
private $createdAtGte;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "createdAtLte")
|
||||
*/
|
||||
private $createdAtLte;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "pageNum")
|
||||
*/
|
||||
private $pageNum;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "pageSize")
|
||||
*/
|
||||
private $pageSize;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "notAck", $this->notAck);
|
||||
$this->setUserParam($params, "createdAtGte", $this->createdAtGte);
|
||||
$this->setUserParam($params, "createdAtLte", $this->createdAtLte);
|
||||
$this->setUserParam($params, "pageNum", $this->pageNum);
|
||||
$this->setUserParam($params, "pageSize", $this->pageSize);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.depot.ticket.get";
|
||||
}
|
||||
|
||||
public function setNotAck($notAck)
|
||||
{
|
||||
$this->notAck = $notAck;
|
||||
}
|
||||
|
||||
public function setCreatedAtGte($createdAtGte)
|
||||
{
|
||||
$this->createdAtGte = $createdAtGte;
|
||||
}
|
||||
|
||||
public function setCreatedAtLte($createdAtLte)
|
||||
{
|
||||
$this->createdAtLte = $createdAtLte;
|
||||
}
|
||||
|
||||
public function setPageNum($pageNum)
|
||||
{
|
||||
$this->pageNum = $pageNum;
|
||||
}
|
||||
|
||||
public function setPageSize($pageSize)
|
||||
{
|
||||
$this->pageSize = $pageSize;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,118 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsDepotTicketNotifyRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(Long, "ticketId")
|
||||
*/
|
||||
private $ticketId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "content")
|
||||
*/
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsDepotTicketNotifyRequest_AttachUrlItem>, "attachUrl")
|
||||
*/
|
||||
private $attachUrl;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "serviceStatus")
|
||||
*/
|
||||
private $serviceStatus;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Integer, "compensateAmount")
|
||||
*/
|
||||
private $compensateAmount;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "ticketId", $this->ticketId);
|
||||
$this->setUserParam($params, "content", $this->content);
|
||||
$this->setUserParam($params, "attachUrl", $this->attachUrl);
|
||||
$this->setUserParam($params, "serviceStatus", $this->serviceStatus);
|
||||
$this->setUserParam($params, "compensateAmount", $this->compensateAmount);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.depot.ticket.notify";
|
||||
}
|
||||
|
||||
public function setTicketId($ticketId)
|
||||
{
|
||||
$this->ticketId = $ticketId;
|
||||
}
|
||||
|
||||
public function setContent($content)
|
||||
{
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
public function setAttachUrl($attachUrl)
|
||||
{
|
||||
$this->attachUrl = $attachUrl;
|
||||
}
|
||||
|
||||
public function setServiceStatus($serviceStatus)
|
||||
{
|
||||
$this->serviceStatus = $serviceStatus;
|
||||
}
|
||||
|
||||
public function setCompensateAmount($compensateAmount)
|
||||
{
|
||||
$this->compensateAmount = $compensateAmount;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsDepotTicketNotifyRequest_AttachUrlItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "url")
|
||||
*/
|
||||
private $url;
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setUrl($url)
|
||||
{
|
||||
$this->url = $url;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsDepotTicketProblemGetRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.depot.ticket.problem.get";
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,194 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsInborderConfirmRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.inborder.confirm";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderConfirmRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestInbOrder, "inbOrder")
|
||||
*/
|
||||
private $inbOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderConfirmRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
public function setInbOrder($inbOrder)
|
||||
{
|
||||
$this->inbOrder = $inbOrder;
|
||||
}
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderConfirmRequest_RequestInbOrder extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inbOrderCode")
|
||||
*/
|
||||
private $inbOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "outBizCode")
|
||||
*/
|
||||
private $outBizCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "status")
|
||||
*/
|
||||
private $status;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "warehouseId")
|
||||
*/
|
||||
private $warehouseId;
|
||||
|
||||
public function setInbOrderCode($inbOrderCode)
|
||||
{
|
||||
$this->inbOrderCode = $inbOrderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOutBizCode($outBizCode)
|
||||
{
|
||||
$this->outBizCode = $outBizCode;
|
||||
}
|
||||
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
public function setWarehouseId($warehouseId)
|
||||
{
|
||||
$this->warehouseId = $warehouseId;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "actualReceiveQuantity")
|
||||
*/
|
||||
private $actualReceiveQuantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setActualReceiveQuantity($actualReceiveQuantity)
|
||||
{
|
||||
$this->actualReceiveQuantity = $actualReceiveQuantity;
|
||||
}
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,354 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsInborderCreateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.inborder.create";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderCreateRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrder, "inbOrder")
|
||||
*/
|
||||
private $inbOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestOrderLineItem>, "orderLine")
|
||||
*/
|
||||
private $orderLine;
|
||||
|
||||
public function setInbOrder($inbOrder)
|
||||
{
|
||||
$this->inbOrder = $inbOrder;
|
||||
}
|
||||
|
||||
public function setOrderLine($orderLine)
|
||||
{
|
||||
$this->orderLine = $orderLine;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderCreateRequest_RequestInbOrder extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "createTime")
|
||||
*/
|
||||
private $createTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inbOrderCode")
|
||||
*/
|
||||
private $inbOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderMallContracter, "mallContracter")
|
||||
*/
|
||||
private $mallContracter;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "planReceiveTime")
|
||||
*/
|
||||
private $planReceiveTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderRelatedOrdersItem>, "relatedOrders")
|
||||
*/
|
||||
private $relatedOrders;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "remark")
|
||||
*/
|
||||
private $remark;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsInborderCreateRequest_RequestInbOrderSenderInfo, "senderInfo")
|
||||
*/
|
||||
private $senderInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
|
||||
public function setInbOrderCode($inbOrderCode)
|
||||
{
|
||||
$this->inbOrderCode = $inbOrderCode;
|
||||
}
|
||||
|
||||
public function setMallContracter($mallContracter)
|
||||
{
|
||||
$this->mallContracter = $mallContracter;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setPlanReceiveTime($planReceiveTime)
|
||||
{
|
||||
$this->planReceiveTime = $planReceiveTime;
|
||||
}
|
||||
|
||||
public function setRelatedOrders($relatedOrders)
|
||||
{
|
||||
$this->relatedOrders = $relatedOrders;
|
||||
}
|
||||
|
||||
public function setRemark($remark)
|
||||
{
|
||||
$this->remark = $remark;
|
||||
}
|
||||
|
||||
public function setSenderInfo($senderInfo)
|
||||
{
|
||||
$this->senderInfo = $senderInfo;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderCreateRequest_RequestInbOrderMallContracter extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderCreateRequest_RequestInbOrderRelatedOrdersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderCode")
|
||||
*/
|
||||
private $orderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
public function setOrderCode($orderCode)
|
||||
{
|
||||
$this->orderCode = $orderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderCreateRequest_RequestInbOrderSenderInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "address")
|
||||
*/
|
||||
private $address;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "area")
|
||||
*/
|
||||
private $area;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "city")
|
||||
*/
|
||||
private $city;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "province")
|
||||
*/
|
||||
private $province;
|
||||
|
||||
public function setAddress($address)
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
public function setArea($area)
|
||||
{
|
||||
$this->area = $area;
|
||||
}
|
||||
|
||||
public function setCity($city)
|
||||
{
|
||||
$this->city = $city;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setProvince($province)
|
||||
{
|
||||
$this->province = $province;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsInborderCreateRequest_RequestOrderLineItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "planReceiveQuantity")
|
||||
*/
|
||||
private $planReceiveQuantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setPlanReceiveQuantity($planReceiveQuantity)
|
||||
{
|
||||
$this->planReceiveQuantity = $planReceiveQuantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOrderCallbackRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderCallbackRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.order.callback";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderCallbackRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "deliveryOrderCode")
|
||||
*/
|
||||
private $deliveryOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setDeliveryOrderCode($deliveryOrderCode)
|
||||
{
|
||||
$this->deliveryOrderCode = $deliveryOrderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,104 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOrderCancelRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderCancelRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.order.cancel";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderCancelRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "cancelReason")
|
||||
*/
|
||||
private $cancelReason;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderCode")
|
||||
*/
|
||||
private $orderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setCancelReason($cancelReason)
|
||||
{
|
||||
$this->cancelReason = $cancelReason;
|
||||
}
|
||||
|
||||
public function setOrderCode($orderCode)
|
||||
{
|
||||
$this->orderCode = $orderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,84 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOrderQueryRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderQueryRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.order.query";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderQueryRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderCode")
|
||||
*/
|
||||
private $orderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setOrderCode($orderCode)
|
||||
{
|
||||
$this->orderCode = $orderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOrderstateSendRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.orderstate.send";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderstateSendRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestOrder, "order")
|
||||
*/
|
||||
private $order;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOrderstateSendRequest_RequestProcess, "process")
|
||||
*/
|
||||
private $process;
|
||||
|
||||
public function setOrder($order)
|
||||
{
|
||||
$this->order = $order;
|
||||
}
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setProcess($process)
|
||||
{
|
||||
$this->process = $process;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderstateSendRequest_RequestOrder extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderCode")
|
||||
*/
|
||||
private $orderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setOrderCode($orderCode)
|
||||
{
|
||||
$this->orderCode = $orderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderstateSendRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "parentWareSn")
|
||||
*/
|
||||
private $parentWareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "quantity")
|
||||
*/
|
||||
private $quantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setParentWareSn($parentWareSn)
|
||||
{
|
||||
$this->parentWareSn = $parentWareSn;
|
||||
}
|
||||
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
$this->quantity = $quantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOrderstateSendRequest_RequestProcess extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "operateInfo")
|
||||
*/
|
||||
private $operateInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "operateTime")
|
||||
*/
|
||||
private $operateTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "processStatus")
|
||||
*/
|
||||
private $processStatus;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "remark")
|
||||
*/
|
||||
private $remark;
|
||||
|
||||
public function setOperateInfo($operateInfo)
|
||||
{
|
||||
$this->operateInfo = $operateInfo;
|
||||
}
|
||||
|
||||
public function setOperateTime($operateTime)
|
||||
{
|
||||
$this->operateTime = $operateTime;
|
||||
}
|
||||
|
||||
public function setProcessStatus($processStatus)
|
||||
{
|
||||
$this->processStatus = $processStatus;
|
||||
}
|
||||
|
||||
public function setRemark($remark)
|
||||
{
|
||||
$this->remark = $remark;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,184 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOuborderConfirmRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.ouborder.confirm";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderConfirmRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderConfirmRequest_RequestOubOrder, "oubOrder")
|
||||
*/
|
||||
private $oubOrder;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOubOrder($oubOrder)
|
||||
{
|
||||
$this->oubOrder = $oubOrder;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "actualSendQuantity")
|
||||
*/
|
||||
private $actualSendQuantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setActualSendQuantity($actualSendQuantity)
|
||||
{
|
||||
$this->actualSendQuantity = $actualSendQuantity;
|
||||
}
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderConfirmRequest_RequestOubOrder extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "oubOrderCode")
|
||||
*/
|
||||
private $oubOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "outBizCode")
|
||||
*/
|
||||
private $outBizCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "status")
|
||||
*/
|
||||
private $status;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOubOrderCode($oubOrderCode)
|
||||
{
|
||||
$this->oubOrderCode = $oubOrderCode;
|
||||
}
|
||||
|
||||
public function setOutBizCode($outBizCode)
|
||||
{
|
||||
$this->outBizCode = $outBizCode;
|
||||
}
|
||||
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,354 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOuborderCreateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.ouborder.create";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderCreateRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOrderLineItem>, "orderLine")
|
||||
*/
|
||||
private $orderLine;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrder, "oubOrder")
|
||||
*/
|
||||
private $oubOrder;
|
||||
|
||||
public function setOrderLine($orderLine)
|
||||
{
|
||||
$this->orderLine = $orderLine;
|
||||
}
|
||||
|
||||
public function setOubOrder($oubOrder)
|
||||
{
|
||||
$this->oubOrder = $oubOrder;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderCreateRequest_RequestOrderLineItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "planSendQuantity")
|
||||
*/
|
||||
private $planSendQuantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setPlanSendQuantity($planSendQuantity)
|
||||
{
|
||||
$this->planSendQuantity = $planSendQuantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderCreateRequest_RequestOubOrder extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "createTime")
|
||||
*/
|
||||
private $createTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderMallContracter, "mallContracter")
|
||||
*/
|
||||
private $mallContracter;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "oubOrderCode")
|
||||
*/
|
||||
private $oubOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "planSendTime")
|
||||
*/
|
||||
private $planSendTime;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderReceiverInfo, "receiverInfo")
|
||||
*/
|
||||
private $receiverInfo;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOuborderCreateRequest_RequestOubOrderRelatedOrdersItem>, "relatedOrders")
|
||||
*/
|
||||
private $relatedOrders;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "remark")
|
||||
*/
|
||||
private $remark;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setCreateTime($createTime)
|
||||
{
|
||||
$this->createTime = $createTime;
|
||||
}
|
||||
|
||||
public function setMallContracter($mallContracter)
|
||||
{
|
||||
$this->mallContracter = $mallContracter;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOubOrderCode($oubOrderCode)
|
||||
{
|
||||
$this->oubOrderCode = $oubOrderCode;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setPlanSendTime($planSendTime)
|
||||
{
|
||||
$this->planSendTime = $planSendTime;
|
||||
}
|
||||
|
||||
public function setReceiverInfo($receiverInfo)
|
||||
{
|
||||
$this->receiverInfo = $receiverInfo;
|
||||
}
|
||||
|
||||
public function setRelatedOrders($relatedOrders)
|
||||
{
|
||||
$this->relatedOrders = $relatedOrders;
|
||||
}
|
||||
|
||||
public function setRemark($remark)
|
||||
{
|
||||
$this->remark = $remark;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderCreateRequest_RequestOubOrderMallContracter extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderCreateRequest_RequestOubOrderReceiverInfo extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "address")
|
||||
*/
|
||||
private $address;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "area")
|
||||
*/
|
||||
private $area;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "city")
|
||||
*/
|
||||
private $city;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "mobile")
|
||||
*/
|
||||
private $mobile;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "name")
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "province")
|
||||
*/
|
||||
private $province;
|
||||
|
||||
public function setAddress($address)
|
||||
{
|
||||
$this->address = $address;
|
||||
}
|
||||
|
||||
public function setArea($area)
|
||||
{
|
||||
$this->area = $area;
|
||||
}
|
||||
|
||||
public function setCity($city)
|
||||
{
|
||||
$this->city = $city;
|
||||
}
|
||||
|
||||
public function setMobile($mobile)
|
||||
{
|
||||
$this->mobile = $mobile;
|
||||
}
|
||||
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
public function setProvince($province)
|
||||
{
|
||||
$this->province = $province;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOuborderCreateRequest_RequestOubOrderRelatedOrdersItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderCode")
|
||||
*/
|
||||
private $orderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
public function setOrderCode($orderCode)
|
||||
{
|
||||
$this->orderCode = $orderCode;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsOutboundChangedateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsOutboundChangedateRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.outbound.changedate";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsOutboundChangedateRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "deliveryOrderCode")
|
||||
*/
|
||||
private $deliveryOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "scheduleStart")
|
||||
*/
|
||||
private $scheduleStart;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "scheduleEnd")
|
||||
*/
|
||||
private $scheduleEnd;
|
||||
|
||||
public function setDeliveryOrderCode($deliveryOrderCode)
|
||||
{
|
||||
$this->deliveryOrderCode = $deliveryOrderCode;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
public function setScheduleStart($scheduleStart)
|
||||
{
|
||||
$this->scheduleStart = $scheduleStart;
|
||||
}
|
||||
|
||||
public function setScheduleEnd($scheduleEnd)
|
||||
{
|
||||
$this->scheduleEnd = $scheduleEnd;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,204 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsReturnorderConfirmRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderConfirmRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.returnorder.confirm";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsReturnorderConfirmRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "expressCode")
|
||||
*/
|
||||
private $expressCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logisticsCode")
|
||||
*/
|
||||
private $logisticsCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "logisticsName")
|
||||
*/
|
||||
private $logisticsName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderConfirmRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "outBizCode")
|
||||
*/
|
||||
private $outBizCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "returnOrderCode")
|
||||
*/
|
||||
private $returnOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "status")
|
||||
*/
|
||||
private $status;
|
||||
|
||||
public function setExpressCode($expressCode)
|
||||
{
|
||||
$this->expressCode = $expressCode;
|
||||
}
|
||||
|
||||
public function setLogisticsCode($logisticsCode)
|
||||
{
|
||||
$this->logisticsCode = $logisticsCode;
|
||||
}
|
||||
|
||||
public function setLogisticsName($logisticsName)
|
||||
{
|
||||
$this->logisticsName = $logisticsName;
|
||||
}
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOutBizCode($outBizCode)
|
||||
{
|
||||
$this->outBizCode = $outBizCode;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setReturnOrderCode($returnOrderCode)
|
||||
{
|
||||
$this->returnOrderCode = $returnOrderCode;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
public function setStatus($status)
|
||||
{
|
||||
$this->status = $status;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsReturnorderConfirmRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "parentWareSn")
|
||||
*/
|
||||
private $parentWareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(Long, "quantity")
|
||||
*/
|
||||
private $quantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setParentWareSn($parentWareSn)
|
||||
{
|
||||
$this->parentWareSn = $parentWareSn;
|
||||
}
|
||||
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
$this->quantity = $quantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,184 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsReturnorderCreateRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderCreateRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.returnorder.create";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsReturnorderCreateRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "deliveryOrderCode")
|
||||
*/
|
||||
private $deliveryOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderFlag")
|
||||
*/
|
||||
private $orderFlag;
|
||||
|
||||
/**
|
||||
* @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddWmsReturnorderCreateRequest_RequestOrderLinesItem>, "orderLines")
|
||||
*/
|
||||
private $orderLines;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "orderType")
|
||||
*/
|
||||
private $orderType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "returnOrderCode")
|
||||
*/
|
||||
private $returnOrderCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "returnReason")
|
||||
*/
|
||||
private $returnReason;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "warehouseCode")
|
||||
*/
|
||||
private $warehouseCode;
|
||||
|
||||
public function setDeliveryOrderCode($deliveryOrderCode)
|
||||
{
|
||||
$this->deliveryOrderCode = $deliveryOrderCode;
|
||||
}
|
||||
|
||||
public function setOrderFlag($orderFlag)
|
||||
{
|
||||
$this->orderFlag = $orderFlag;
|
||||
}
|
||||
|
||||
public function setOrderLines($orderLines)
|
||||
{
|
||||
$this->orderLines = $orderLines;
|
||||
}
|
||||
|
||||
public function setOrderType($orderType)
|
||||
{
|
||||
$this->orderType = $orderType;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setReturnOrderCode($returnOrderCode)
|
||||
{
|
||||
$this->returnOrderCode = $returnOrderCode;
|
||||
}
|
||||
|
||||
public function setReturnReason($returnReason)
|
||||
{
|
||||
$this->returnReason = $returnReason;
|
||||
}
|
||||
|
||||
public function setWarehouseCode($warehouseCode)
|
||||
{
|
||||
$this->warehouseCode = $warehouseCode;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsReturnorderCreateRequest_RequestOrderLinesItem extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "inventoryType")
|
||||
*/
|
||||
private $inventoryType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "parentWareSn")
|
||||
*/
|
||||
private $parentWareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "quantity")
|
||||
*/
|
||||
private $quantity;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
public function setInventoryType($inventoryType)
|
||||
{
|
||||
$this->inventoryType = $inventoryType;
|
||||
}
|
||||
|
||||
public function setParentWareSn($parentWareSn)
|
||||
{
|
||||
$this->parentWareSn = $parentWareSn;
|
||||
}
|
||||
|
||||
public function setQuantity($quantity)
|
||||
{
|
||||
$this->quantity = $quantity;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,234 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsWareSynchronizeRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareSynchronizeRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.ware.synchronize";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsWareSynchronizeRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "actionType")
|
||||
*/
|
||||
private $actionType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareSynchronizeRequest_RequestWare, "ware")
|
||||
*/
|
||||
private $ware;
|
||||
|
||||
public function setActionType($actionType)
|
||||
{
|
||||
$this->actionType = $actionType;
|
||||
}
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setWare($ware)
|
||||
{
|
||||
$this->ware = $ware;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsWareSynchronizeRequest_RequestWare extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "barCode")
|
||||
*/
|
||||
private $barCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "brandName")
|
||||
*/
|
||||
private $brandName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "categoryId")
|
||||
*/
|
||||
private $categoryId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "categoryName")
|
||||
*/
|
||||
private $categoryName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "color")
|
||||
*/
|
||||
private $color;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "height")
|
||||
*/
|
||||
private $height;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "length")
|
||||
*/
|
||||
private $length;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "size")
|
||||
*/
|
||||
private $size;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "volume")
|
||||
*/
|
||||
private $volume;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareName")
|
||||
*/
|
||||
private $wareName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareType")
|
||||
*/
|
||||
private $wareType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "weight")
|
||||
*/
|
||||
private $weight;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "width")
|
||||
*/
|
||||
private $width;
|
||||
|
||||
public function setBarCode($barCode)
|
||||
{
|
||||
$this->barCode = $barCode;
|
||||
}
|
||||
|
||||
public function setBrandName($brandName)
|
||||
{
|
||||
$this->brandName = $brandName;
|
||||
}
|
||||
|
||||
public function setCategoryId($categoryId)
|
||||
{
|
||||
$this->categoryId = $categoryId;
|
||||
}
|
||||
|
||||
public function setCategoryName($categoryName)
|
||||
{
|
||||
$this->categoryName = $categoryName;
|
||||
}
|
||||
|
||||
public function setColor($color)
|
||||
{
|
||||
$this->color = $color;
|
||||
}
|
||||
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
}
|
||||
|
||||
public function setLength($length)
|
||||
{
|
||||
$this->length = $length;
|
||||
}
|
||||
|
||||
public function setSize($size)
|
||||
{
|
||||
$this->size = $size;
|
||||
}
|
||||
|
||||
public function setVolume($volume)
|
||||
{
|
||||
$this->volume = $volume;
|
||||
}
|
||||
|
||||
public function setWareName($wareName)
|
||||
{
|
||||
$this->wareName = $wareName;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
public function setWareType($wareType)
|
||||
{
|
||||
$this->wareType = $wareType;
|
||||
}
|
||||
|
||||
public function setWeight($weight)
|
||||
{
|
||||
$this->weight = $weight;
|
||||
}
|
||||
|
||||
public function setWidth($width)
|
||||
{
|
||||
$this->width = $width;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,174 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Api\Request;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
class PddWmsWareinformSendRequest extends PopBaseHttpRequest
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareinformSendRequest_Request, "request")
|
||||
*/
|
||||
private $request;
|
||||
|
||||
protected function setUserParams(&$params)
|
||||
{
|
||||
$this->setUserParam($params, "request", $this->request);
|
||||
|
||||
}
|
||||
|
||||
public function getVersion()
|
||||
{
|
||||
return "V1";
|
||||
}
|
||||
|
||||
public function getDataType()
|
||||
{
|
||||
return "JSON";
|
||||
}
|
||||
|
||||
public function getType()
|
||||
{
|
||||
return "pdd.wms.wareinform.send";
|
||||
}
|
||||
|
||||
public function setRequest($request)
|
||||
{
|
||||
$this->request = $request;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsWareinformSendRequest_Request extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "ownerCode")
|
||||
*/
|
||||
private $ownerCode;
|
||||
|
||||
/**
|
||||
* @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddWmsWareinformSendRequest_RequestWare, "ware")
|
||||
*/
|
||||
private $ware;
|
||||
|
||||
public function setOwnerCode($ownerCode)
|
||||
{
|
||||
$this->ownerCode = $ownerCode;
|
||||
}
|
||||
|
||||
public function setWare($ware)
|
||||
{
|
||||
$this->ware = $ware;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class PddWmsWareinformSendRequest_RequestWare extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "color")
|
||||
*/
|
||||
private $color;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "height")
|
||||
*/
|
||||
private $height;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "length")
|
||||
*/
|
||||
private $length;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "size")
|
||||
*/
|
||||
private $size;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "volume")
|
||||
*/
|
||||
private $volume;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareName")
|
||||
*/
|
||||
private $wareName;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "wareSn")
|
||||
*/
|
||||
private $wareSn;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "weight")
|
||||
*/
|
||||
private $weight;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "width")
|
||||
*/
|
||||
private $width;
|
||||
|
||||
public function setColor($color)
|
||||
{
|
||||
$this->color = $color;
|
||||
}
|
||||
|
||||
public function setHeight($height)
|
||||
{
|
||||
$this->height = $height;
|
||||
}
|
||||
|
||||
public function setLength($length)
|
||||
{
|
||||
$this->length = $length;
|
||||
}
|
||||
|
||||
public function setSize($size)
|
||||
{
|
||||
$this->size = $size;
|
||||
}
|
||||
|
||||
public function setVolume($volume)
|
||||
{
|
||||
$this->volume = $volume;
|
||||
}
|
||||
|
||||
public function setWareName($wareName)
|
||||
{
|
||||
$this->wareName = $wareName;
|
||||
}
|
||||
|
||||
public function setWareSn($wareSn)
|
||||
{
|
||||
$this->wareSn = $wareSn;
|
||||
}
|
||||
|
||||
public function setWeight($weight)
|
||||
{
|
||||
$this->weight = $weight;
|
||||
}
|
||||
|
||||
public function setWidth($width)
|
||||
{
|
||||
$this->width = $width;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Common;
|
||||
|
||||
/**
|
||||
* 全局处理字符串
|
||||
*/
|
||||
|
||||
class JsonUtil
|
||||
{
|
||||
/**
|
||||
* @param $doc属性字段的注解
|
||||
* @return 然后数组,$arr[0]是类型, $arr[1]是映射的名称
|
||||
*/
|
||||
public static function parseDoc($doc)
|
||||
{
|
||||
$pattern = '/@JsonProperty\(([\w|\<|\>|\\\\]+),[\s?]\"(\w+)\"\)/i';
|
||||
preg_match($pattern, $doc, $matches);
|
||||
if ($matches && count($matches) == 3) {
|
||||
return array($matches[1], $matches[2]);
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,93 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Token;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
/**
|
||||
* AccessToken request类
|
||||
*/
|
||||
|
||||
class AccessTokenRequest extends PopBaseJsonEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "client_id")
|
||||
*/
|
||||
private $clientId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "client_secret")
|
||||
*/
|
||||
private $clientSecret;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "grant_type")
|
||||
*/
|
||||
private $grantType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "code")
|
||||
*/
|
||||
private $code;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "redirect_uri")
|
||||
*/
|
||||
private $redirectUri = "http://www.baidu.com";
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getRedirectUri()
|
||||
{
|
||||
return $this->redirectUri;
|
||||
}
|
||||
|
||||
public function setRedirectUri($redirectUri)
|
||||
{
|
||||
$this->redirectUri = $redirectUri;
|
||||
}
|
||||
|
||||
public function getClientId()
|
||||
{
|
||||
return $this->clientId;
|
||||
}
|
||||
|
||||
public function setClientId($clientId)
|
||||
{
|
||||
$this->clientId = $clientId;
|
||||
}
|
||||
|
||||
public function getClientSecret()
|
||||
{
|
||||
return $this->clientSecret;
|
||||
}
|
||||
|
||||
public function setClientSecret($clientSecret)
|
||||
{
|
||||
$this->clientSecret = $clientSecret;
|
||||
}
|
||||
|
||||
public function getGrantType()
|
||||
{
|
||||
return $this->grantType;
|
||||
}
|
||||
|
||||
public function setGrantType($grantType)
|
||||
{
|
||||
$this->grantType = $grantType;
|
||||
}
|
||||
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
public function setCode($code)
|
||||
{
|
||||
$this->code = $code;
|
||||
}
|
||||
}
|
@ -0,0 +1,76 @@
|
||||
<?php
|
||||
namespace Com\Pdd\Pop\Sdk\Token;
|
||||
|
||||
use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
|
||||
|
||||
/**
|
||||
* RefreshAccessToken request类
|
||||
*/
|
||||
|
||||
class RefreshAccessTokenRequest extends PopBaseJsonEntity
|
||||
{
|
||||
/**
|
||||
* @JsonProperty(String, "client_id")
|
||||
*/
|
||||
private $clientId;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "client_secret")
|
||||
*/
|
||||
private $clientSecret;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "grant_type")
|
||||
*/
|
||||
private $grantType;
|
||||
|
||||
/**
|
||||
* @JsonProperty(String, "refresh_token")
|
||||
*/
|
||||
private $refreshToken;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public function getClientId()
|
||||
{
|
||||
return $this->clientId;
|
||||
}
|
||||
|
||||
public function setClientId($clientId)
|
||||
{
|
||||
$this->clientId = $clientId;
|
||||
}
|
||||
|
||||
public function getClientSecret()
|
||||
{
|
||||
return $this->clientSecret;
|
||||
}
|
||||
|
||||
public function setClientSecret($clientSecret)
|
||||
{
|
||||
$this->clientSecret = $clientSecret;
|
||||
}
|
||||
|
||||
public function getGrantType()
|
||||
{
|
||||
return $this->grantType;
|
||||
}
|
||||
|
||||
public function setGrantType($grantType)
|
||||
{
|
||||
$this->grantType = $grantType;
|
||||
}
|
||||
|
||||
public function getRefreshToken()
|
||||
{
|
||||
return $this->refreshToken;
|
||||
}
|
||||
|
||||
public function setRefreshToken($refreshToken)
|
||||
{
|
||||
$this->refreshToken = $refreshToken;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue