From 0ec70f1f506d5e3b41756d6366c99cd24589f21a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=85=89=E6=98=A5?= Date: Wed, 25 Nov 2020 13:53:53 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E4=BA=91=E5=AD=98=E5=82=A8=20-=20=E6=95=B0=E7=BB=84=E9=97=A8?= =?UTF-8?q?=E9=9D=A2=E5=A2=9E=E5=8A=A0=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 4 + src/common.php | 2 +- src/facade/Arrays.php | 1 + src/helper/Arrays.php | 16 + .../Request/PddTicketSkuRuleAddRequest.php | 652 +++++++++++++++++ .../Request/PddTicketSkuRuleEditRequest.php | 674 ++++++++++++++++++ .../Request/PddTicketSkuRuleGetRequest.php | 55 ++ ...dTicketVerificationNotifycationRequest.php | 55 ++ .../bin/src/Api/Request/PddTimeGetRequest.php | 33 + .../PddTrainCallbackChangeConfirmRequest.php | 171 +++++ .../PddTrainCallbackChangeReserveRequest.php | 362 ++++++++++ .../PddTrainCallbackConfirmPayRequest.php | 121 ++++ .../Request/PddTrainCallbackGrabRequest.php | 437 ++++++++++++ .../PddTrainCallbackOtcbookRequest.php | 339 +++++++++ .../PddTrainCallbackRefundConfirmRequest.php | 154 ++++ .../PddTrainCallbackReserveRequest.php | 350 +++++++++ .../Request/PddTrainCancelChangeRequest.php | 96 +++ .../Request/PddTrainCancelReserveRequest.php | 44 ++ .../Request/PddTrainChangeTicketRequest.php | 304 ++++++++ .../Request/PddTrainConfirmChangeRequest.php | 116 +++ .../Api/Request/PddTrainConfirmPayRequest.php | 106 +++ .../Request/PddTrainCreateOtcbookRequest.php | 356 +++++++++ .../Request/PddTrainCreateReserveRequest.php | 316 ++++++++ .../Api/Request/PddTrainGrabCancelRequest.php | 55 ++ .../Api/Request/PddTrainGrabCreateRequest.php | 313 ++++++++ .../Request/PddTrainGrabOrderQueryRequest.php | 55 ++ .../PddTrainQueryOrderDetailRequest.php | 44 ++ .../Request/PddTrainTicketRefundRequest.php | 44 ++ .../Api/Request/PddVasOrderSearchRequest.php | 154 ++++ .../PddVirtualGameServerQueryRequest.php | 44 ++ .../PddVirtualMobileChargeNotifyRequest.php | 157 ++++ .../PddVoucherAppointmentInfoSendRequest.php | 118 +++ .../PddVoucherOtaCardVerificationRequest.php | 66 ++ .../PddVoucherPhysicalGoodsSendRequest.php | 173 +++++ .../PddVoucherRealtimeOrdernoGetRequest.php | 64 ++ ...dVoucherVirtualCardVerificationRequest.php | 105 +++ .../PddVoucherVoucherComplainRequest.php | 151 ++++ .../PddVoucherVoucherInfoSendRequest.php | 96 +++ .../Api/Request/PddWaybillCancelRequest.php | 55 ++ .../src/Api/Request/PddWaybillGetRequest.php | 554 ++++++++++++++ .../PddWaybillQueryByWaybillcodeRequest.php | 84 +++ .../Api/Request/PddWaybillSearchRequest.php | 44 ++ .../Api/Request/PddWaybillUpdateRequest.php | 354 +++++++++ .../PddWmsDeliveryorderConfirmRequest.php | 204 ++++++ .../PddWmsDeliveryorderCreateRequest.php | 244 +++++++ .../Request/PddWmsDepotTicketAckRequest.php | 44 ++ .../Request/PddWmsDepotTicketGetRequest.php | 88 +++ .../PddWmsDepotTicketNotifyRequest.php | 118 +++ .../PddWmsDepotTicketProblemGetRequest.php | 33 + .../Request/PddWmsInborderConfirmRequest.php | 194 +++++ .../Request/PddWmsInborderCreateRequest.php | 354 +++++++++ .../Request/PddWmsOrderCallbackRequest.php | 94 +++ .../Api/Request/PddWmsOrderCancelRequest.php | 104 +++ .../Api/Request/PddWmsOrderQueryRequest.php | 84 +++ .../Request/PddWmsOrderstateSendRequest.php | 234 ++++++ .../Request/PddWmsOuborderConfirmRequest.php | 184 +++++ .../Request/PddWmsOuborderCreateRequest.php | 354 +++++++++ .../PddWmsOutboundChangedateRequest.php | 94 +++ .../PddWmsReturnorderConfirmRequest.php | 204 ++++++ .../PddWmsReturnorderCreateRequest.php | 184 +++++ .../Request/PddWmsWareSynchronizeRequest.php | 234 ++++++ .../Request/PddWmsWareinformSendRequest.php | 174 +++++ .../pinduoduo/bin/src/Common/JsonUtil.php | 25 + .../bin/src/Token/AccessTokenRequest.php | 93 +++ .../src/Token/RefreshAccessTokenRequest.php | 76 ++ src/service/tencent/CosService.php | 4 +- 66 files changed, 10912 insertions(+), 3 deletions(-) create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeConfirmRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderConfirmRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php create mode 100644 src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php create mode 100644 src/service/pinduoduo/bin/src/Common/JsonUtil.php create mode 100644 src/service/pinduoduo/bin/src/Token/AccessTokenRequest.php create mode 100644 src/service/pinduoduo/bin/src/Token/RefreshAccessTokenRequest.php diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a7db42..87fc61b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## v6.0.127 / 2020-11-25 +- 修复腾讯云存储 +- 数组门面增加方法 + ## v6.0.126 / 2020-11-19 - 优化淘宝官方SDK diff --git a/src/common.php b/src/common.php index 88fb97c..c7c6689 100644 --- a/src/common.php +++ b/src/common.php @@ -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')) { /** diff --git a/src/facade/Arrays.php b/src/facade/Arrays.php index f8c6780..d14f41e 100644 --- a/src/facade/Arrays.php +++ b/src/facade/Arrays.php @@ -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 { diff --git a/src/helper/Arrays.php b/src/helper/Arrays.php index 6d04f1d..0db7705 100644 --- a/src/helper/Arrays.php +++ b/src/helper/Arrays.php @@ -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); + } } diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php new file mode 100644 index 0000000..1305a71 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleAddRequest.php @@ -0,0 +1,652 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php new file mode 100644 index 0000000..b6c8f74 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleEditRequest.php @@ -0,0 +1,674 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php new file mode 100644 index 0000000..c91fbaa --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketSkuRuleGetRequest.php @@ -0,0 +1,55 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php new file mode 100644 index 0000000..e6d8561 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTicketVerificationNotifycationRequest.php @@ -0,0 +1,55 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php new file mode 100644 index 0000000..d302f7c --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTimeGetRequest.php @@ -0,0 +1,33 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php new file mode 100644 index 0000000..ac2a38a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackChangeReserveRequest.php @@ -0,0 +1,362 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php new file mode 100644 index 0000000..d62c4a6 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackConfirmPayRequest.php @@ -0,0 +1,121 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php new file mode 100644 index 0000000..df5bd2c --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackGrabRequest.php @@ -0,0 +1,437 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php new file mode 100644 index 0000000..bc0b172 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackOtcbookRequest.php @@ -0,0 +1,339 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php new file mode 100644 index 0000000..944da5d --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackRefundConfirmRequest.php @@ -0,0 +1,154 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php new file mode 100644 index 0000000..c154c8a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCallbackReserveRequest.php @@ -0,0 +1,350 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php new file mode 100644 index 0000000..e552412 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelChangeRequest.php @@ -0,0 +1,96 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php new file mode 100644 index 0000000..4f70fc6 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCancelReserveRequest.php @@ -0,0 +1,44 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php new file mode 100644 index 0000000..090e4bc --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainChangeTicketRequest.php @@ -0,0 +1,304 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php new file mode 100644 index 0000000..724b1b0 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmChangeRequest.php @@ -0,0 +1,116 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php new file mode 100644 index 0000000..c7ef4a6 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainConfirmPayRequest.php @@ -0,0 +1,106 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php new file mode 100644 index 0000000..dfed6d7 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateOtcbookRequest.php @@ -0,0 +1,356 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php new file mode 100644 index 0000000..a8e6968 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainCreateReserveRequest.php @@ -0,0 +1,316 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php new file mode 100644 index 0000000..a02d51b --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCancelRequest.php @@ -0,0 +1,55 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php new file mode 100644 index 0000000..869decd --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabCreateRequest.php @@ -0,0 +1,313 @@ +, "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, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php new file mode 100644 index 0000000..eb0ac77 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainGrabOrderQueryRequest.php @@ -0,0 +1,55 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php new file mode 100644 index 0000000..e478f96 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainQueryOrderDetailRequest.php @@ -0,0 +1,44 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php new file mode 100644 index 0000000..2a81134 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddTrainTicketRefundRequest.php @@ -0,0 +1,44 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php new file mode 100644 index 0000000..a328c5a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVasOrderSearchRequest.php @@ -0,0 +1,154 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php new file mode 100644 index 0000000..e4890ab --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualGameServerQueryRequest.php @@ -0,0 +1,44 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php new file mode 100644 index 0000000..f58f4fa --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVirtualMobileChargeNotifyRequest.php @@ -0,0 +1,157 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php new file mode 100644 index 0000000..34b0ad4 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherAppointmentInfoSendRequest.php @@ -0,0 +1,118 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php new file mode 100644 index 0000000..d28778f --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherOtaCardVerificationRequest.php @@ -0,0 +1,66 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php new file mode 100644 index 0000000..a121e4b --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherPhysicalGoodsSendRequest.php @@ -0,0 +1,173 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php new file mode 100644 index 0000000..a9e37a4 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherRealtimeOrdernoGetRequest.php @@ -0,0 +1,64 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php new file mode 100644 index 0000000..c5c6bb5 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVirtualCardVerificationRequest.php @@ -0,0 +1,105 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php new file mode 100644 index 0000000..511b9cb --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherComplainRequest.php @@ -0,0 +1,151 @@ +, "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, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php new file mode 100644 index 0000000..e0939be --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddVoucherVoucherInfoSendRequest.php @@ -0,0 +1,96 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php new file mode 100644 index 0000000..7046414 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillCancelRequest.php @@ -0,0 +1,55 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php new file mode 100644 index 0000000..3b6d0ec --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillGetRequest.php @@ -0,0 +1,554 @@ +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, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php new file mode 100644 index 0000000..2df3c83 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillQueryByWaybillcodeRequest.php @@ -0,0 +1,84 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php new file mode 100644 index 0000000..62d3b92 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillSearchRequest.php @@ -0,0 +1,44 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php new file mode 100644 index 0000000..f8747a8 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWaybillUpdateRequest.php @@ -0,0 +1,354 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php new file mode 100644 index 0000000..f4f7ba4 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderConfirmRequest.php @@ -0,0 +1,204 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php new file mode 100644 index 0000000..d0f3411 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDeliveryorderCreateRequest.php @@ -0,0 +1,244 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php new file mode 100644 index 0000000..2a531ea --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketAckRequest.php @@ -0,0 +1,44 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php new file mode 100644 index 0000000..bf71dc8 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketGetRequest.php @@ -0,0 +1,88 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php new file mode 100644 index 0000000..a4d4be1 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketNotifyRequest.php @@ -0,0 +1,118 @@ +, "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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php new file mode 100644 index 0000000..ce4cb5a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsDepotTicketProblemGetRequest.php @@ -0,0 +1,33 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php new file mode 100644 index 0000000..9d825de --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsInborderCreateRequest.php @@ -0,0 +1,354 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php new file mode 100644 index 0000000..45c0b7c --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCallbackRequest.php @@ -0,0 +1,94 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php new file mode 100644 index 0000000..b95fbb6 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderCancelRequest.php @@ -0,0 +1,104 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php new file mode 100644 index 0000000..3843f5a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderQueryRequest.php @@ -0,0 +1,84 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php new file mode 100644 index 0000000..fa0777a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOrderstateSendRequest.php @@ -0,0 +1,234 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php new file mode 100644 index 0000000..34d8aba --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderConfirmRequest.php @@ -0,0 +1,184 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php new file mode 100644 index 0000000..aab6f45 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOuborderCreateRequest.php @@ -0,0 +1,354 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php new file mode 100644 index 0000000..b5e5ca0 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsOutboundChangedateRequest.php @@ -0,0 +1,94 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php new file mode 100644 index 0000000..49d5d54 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderConfirmRequest.php @@ -0,0 +1,204 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php new file mode 100644 index 0000000..d96ba19 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsReturnorderCreateRequest.php @@ -0,0 +1,184 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php new file mode 100644 index 0000000..1293436 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareSynchronizeRequest.php @@ -0,0 +1,234 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php new file mode 100644 index 0000000..1da1eae --- /dev/null +++ b/src/service/pinduoduo/bin/src/Api/Request/PddWmsWareinformSendRequest.php @@ -0,0 +1,174 @@ +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; + } + +} diff --git a/src/service/pinduoduo/bin/src/Common/JsonUtil.php b/src/service/pinduoduo/bin/src/Common/JsonUtil.php new file mode 100644 index 0000000..f1f2375 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Common/JsonUtil.php @@ -0,0 +1,25 @@ +|\\\\]+),[\s?]\"(\w+)\"\)/i'; + preg_match($pattern, $doc, $matches); + if ($matches && count($matches) == 3) { + return array($matches[1], $matches[2]); + } else { + return NULL; + } + } + +} \ No newline at end of file diff --git a/src/service/pinduoduo/bin/src/Token/AccessTokenRequest.php b/src/service/pinduoduo/bin/src/Token/AccessTokenRequest.php new file mode 100644 index 0000000..4be6cc2 --- /dev/null +++ b/src/service/pinduoduo/bin/src/Token/AccessTokenRequest.php @@ -0,0 +1,93 @@ +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; + } +} diff --git a/src/service/pinduoduo/bin/src/Token/RefreshAccessTokenRequest.php b/src/service/pinduoduo/bin/src/Token/RefreshAccessTokenRequest.php new file mode 100644 index 0000000..49bfe3a --- /dev/null +++ b/src/service/pinduoduo/bin/src/Token/RefreshAccessTokenRequest.php @@ -0,0 +1,76 @@ +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; + } +} \ No newline at end of file diff --git a/src/service/tencent/CosService.php b/src/service/tencent/CosService.php index c1b1706..6e54be5 100644 --- a/src/service/tencent/CosService.php +++ b/src/service/tencent/CosService.php @@ -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 -- GitLab