提交 0ec70f1f 编写于 作者: 李光春's avatar 李光春

- 修复腾讯云存储

- 数组门面增加方法
上级 fe03e1ba
## v6.0.127 / 2020-11-25
- 修复腾讯云存储
- 数组门面增加方法
## v6.0.126 / 2020-11-19
- 优化淘宝官方SDK
......
......@@ -25,7 +25,7 @@ use DtApp\ThinkLibrary\service\SystemService;
/**
* 定义当前版本
*/
const VERSION = '6.0.126';
const VERSION = '6.0.127';
if (!function_exists('get_ip_info')) {
/**
......
......@@ -37,6 +37,7 @@ use think\Facade;
* @method static array unique(array $array) 多维数组去重
* @method static array sort(array $arrays, string $sort_key, $sort_order = SORT_ASC, $sort_type = SORT_NUMERIC) 二维数组根据某个键排序
* @method static array trimArray(array $arr) 数组删除空格
* @method static array toArray($output) 把json字符串或json对象转json数组
*/
class Arrays extends Facade
{
......
......@@ -151,4 +151,20 @@ class Arrays
$newchar = array("", "", "", "", "");
return str_replace($oldchar, $newchar, $str);
}
/**
* 把json字符串或json对象转json数组
* @param $output
* @return array
*/
public function toArray($output): array
{
if (is_array($output)) {
return $output;
}
if (is_object($output)) {
$output = json_encode($output, JSON_UNESCAPED_UNICODE);
}
return json_decode($output, true);
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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";
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
<?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;
}
}
此差异已折叠。
......@@ -103,7 +103,7 @@ class CosService extends Service
}
$cosClient = new Client([
'region' => $this->region,
'schema' => 'http', //协议头部,默认为http
'schema' => 'https',
'credentials' => [
'secretId' => $this->secretId,
'secretKey' => $this->secretKey
......@@ -113,7 +113,7 @@ class CosService extends Service
$file = fopen($filePath, "rb");
if ($file && empty($this->bucket)) {
$this->getConfig();
$cosClient->putObject([
$result = $cosClient->putObject([
'Bucket' => $this->bucket,
'Key' => $key,
'Body' => $file
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册