| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653 |
- <?php
- namespace Com\Pdd\Pop\Sdk\Api\Request;
- use Com\Pdd\Pop\Sdk\PopBaseHttpRequest;
- use Com\Pdd\Pop\Sdk\PopBaseJsonEntity;
- class PddTicketSkuRuleAddRequest extends PopBaseHttpRequest
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookerInfoLimitation, "booker_info_limitation")
- */
- private $bookerInfoLimitation;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNotice, "booking_notice")
- */
- private $bookingNotice;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_OrderLimitation, "order_limitation")
- */
- private $orderLimitation;
- /**
- * @JsonProperty(String, "out_rule_id")
- */
- private $outRuleId;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfo, "provider_contact_info")
- */
- private $providerContactInfo;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitations, "refund_limitations")
- */
- private $refundLimitations;
- /**
- * @JsonProperty(String, "rule_name")
- */
- private $ruleName;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_TravelerInfoLimitation, "traveler_info_limitation")
- */
- private $travelerInfoLimitation;
- /**
- * @JsonProperty(\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ValidLimitation, "valid_limitation")
- */
- private $validLimitation;
- protected function setUserParams(&$params)
- {
- $this->setUserParam($params, "booker_info_limitation", $this->bookerInfoLimitation);
- $this->setUserParam($params, "booking_notice", $this->bookingNotice);
- $this->setUserParam($params, "order_limitation", $this->orderLimitation);
- $this->setUserParam($params, "out_rule_id", $this->outRuleId);
- $this->setUserParam($params, "provider_contact_info", $this->providerContactInfo);
- $this->setUserParam($params, "refund_limitations", $this->refundLimitations);
- $this->setUserParam($params, "rule_name", $this->ruleName);
- $this->setUserParam($params, "traveler_info_limitation", $this->travelerInfoLimitation);
- $this->setUserParam($params, "valid_limitation", $this->validLimitation);
- }
- public function getVersion()
- {
- return "V1";
- }
- public function getDataType()
- {
- return "JSON";
- }
- public function getType()
- {
- return "pdd.ticket.sku.rule.add";
- }
- public function setBookerInfoLimitation($bookerInfoLimitation)
- {
- $this->bookerInfoLimitation = $bookerInfoLimitation;
- }
- public function setBookingNotice($bookingNotice)
- {
- $this->bookingNotice = $bookingNotice;
- }
- public function setOrderLimitation($orderLimitation)
- {
- $this->orderLimitation = $orderLimitation;
- }
- public function setOutRuleId($outRuleId)
- {
- $this->outRuleId = $outRuleId;
- }
- public function setProviderContactInfo($providerContactInfo)
- {
- $this->providerContactInfo = $providerContactInfo;
- }
- public function setRefundLimitations($refundLimitations)
- {
- $this->refundLimitations = $refundLimitations;
- }
- public function setRuleName($ruleName)
- {
- $this->ruleName = $ruleName;
- }
- public function setTravelerInfoLimitation($travelerInfoLimitation)
- {
- $this->travelerInfoLimitation = $travelerInfoLimitation;
- }
- public function setValidLimitation($validLimitation)
- {
- $this->validLimitation = $validLimitation;
- }
- }
- class PddTicketSkuRuleAddRequest_BookerInfoLimitation extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "booker_required")
- */
- private $bookerRequired;
- /**
- * @JsonProperty(Integer, "mobile")
- */
- private $mobile;
- public function setBookerRequired($bookerRequired)
- {
- $this->bookerRequired = $bookerRequired;
- }
- public function setMobile($mobile)
- {
- $this->mobile = $mobile;
- }
- }
- class PddTicketSkuRuleAddRequest_BookingNotice extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "enter_address")
- */
- private $enterAddress;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem>, "enter_time")
- */
- private $enterTime;
- /**
- * @JsonProperty(String, "enter_ways")
- */
- private $enterWays;
- /**
- * @JsonProperty(String, "extra_desc")
- */
- private $extraDesc;
- /**
- * @JsonProperty(String, "fee_include")
- */
- private $feeInclude;
- /**
- * @JsonProperty(String, "fee_not_include")
- */
- private $feeNotInclude;
- /**
- * @JsonProperty(String, "important_notice")
- */
- private $importantNotice;
- /**
- * @JsonProperty(Integer, "pass_time_limit")
- */
- private $passTimeLimit;
- /**
- * @JsonProperty(String, "ticket_place")
- */
- private $ticketPlace;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem>, "ticket_time")
- */
- private $ticketTime;
- public function setEnterAddress($enterAddress)
- {
- $this->enterAddress = $enterAddress;
- }
- public function setEnterTime($enterTime)
- {
- $this->enterTime = $enterTime;
- }
- public function setEnterWays($enterWays)
- {
- $this->enterWays = $enterWays;
- }
- public function setExtraDesc($extraDesc)
- {
- $this->extraDesc = $extraDesc;
- }
- public function setFeeInclude($feeInclude)
- {
- $this->feeInclude = $feeInclude;
- }
- public function setFeeNotInclude($feeNotInclude)
- {
- $this->feeNotInclude = $feeNotInclude;
- }
- public function setImportantNotice($importantNotice)
- {
- $this->importantNotice = $importantNotice;
- }
- public function setPassTimeLimit($passTimeLimit)
- {
- $this->passTimeLimit = $passTimeLimit;
- }
- public function setTicketPlace($ticketPlace)
- {
- $this->ticketPlace = $ticketPlace;
- }
- public function setTicketTime($ticketTime)
- {
- $this->ticketTime = $ticketTime;
- }
- }
- class PddTicketSkuRuleAddRequest_BookingNoticeEnterTimeItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "comment")
- */
- private $comment;
- /**
- * @JsonProperty(String, "end_at")
- */
- private $endAt;
- /**
- * @JsonProperty(String, "start_at")
- */
- private $startAt;
- public function setComment($comment)
- {
- $this->comment = $comment;
- }
- public function setEndAt($endAt)
- {
- $this->endAt = $endAt;
- }
- public function setStartAt($startAt)
- {
- $this->startAt = $startAt;
- }
- }
- class PddTicketSkuRuleAddRequest_BookingNoticeTicketTimeItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "comment")
- */
- private $comment;
- /**
- * @JsonProperty(String, "end_at")
- */
- private $endAt;
- /**
- * @JsonProperty(String, "start_at")
- */
- private $startAt;
- public function setComment($comment)
- {
- $this->comment = $comment;
- }
- public function setEndAt($endAt)
- {
- $this->endAt = $endAt;
- }
- public function setStartAt($startAt)
- {
- $this->startAt = $startAt;
- }
- }
- class PddTicketSkuRuleAddRequest_OrderLimitation extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "cycle_length")
- */
- private $cycleLength;
- /**
- * @JsonProperty(Integer, "limitation_type")
- */
- private $limitationType;
- /**
- * @JsonProperty(Integer, "limit_cycle")
- */
- private $limitCycle;
- /**
- * @JsonProperty(Integer, "limit_num")
- */
- private $limitNum;
- public function setCycleLength($cycleLength)
- {
- $this->cycleLength = $cycleLength;
- }
- public function setLimitationType($limitationType)
- {
- $this->limitationType = $limitationType;
- }
- public function setLimitCycle($limitCycle)
- {
- $this->limitCycle = $limitCycle;
- }
- public function setLimitNum($limitNum)
- {
- $this->limitNum = $limitNum;
- }
- }
- class PddTicketSkuRuleAddRequest_ProviderContactInfo extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem>, "provider_business_hour")
- */
- private $providerBusinessHour;
- /**
- * @JsonProperty(String, "provider_name")
- */
- private $providerName;
- /**
- * @JsonProperty(String, "provider_telephone")
- */
- private $providerTelephone;
- public function setProviderBusinessHour($providerBusinessHour)
- {
- $this->providerBusinessHour = $providerBusinessHour;
- }
- public function setProviderName($providerName)
- {
- $this->providerName = $providerName;
- }
- public function setProviderTelephone($providerTelephone)
- {
- $this->providerTelephone = $providerTelephone;
- }
- }
- class PddTicketSkuRuleAddRequest_ProviderContactInfoProviderBusinessHourItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(String, "close_at")
- */
- private $closeAt;
- /**
- * @JsonProperty(String, "open_at")
- */
- private $openAt;
- /**
- * @JsonProperty(String, "time_info")
- */
- private $timeInfo;
- public function setCloseAt($closeAt)
- {
- $this->closeAt = $closeAt;
- }
- public function setOpenAt($openAt)
- {
- $this->openAt = $openAt;
- }
- public function setTimeInfo($timeInfo)
- {
- $this->timeInfo = $timeInfo;
- }
- }
- class PddTicketSkuRuleAddRequest_RefundLimitations extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "is_refundable")
- */
- private $isRefundable;
- /**
- * @JsonProperty(List<\Com\Pdd\Pop\Sdk\Api\Request\PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem>, "refund_rules")
- */
- private $refundRules;
- public function setIsRefundable($isRefundable)
- {
- $this->isRefundable = $isRefundable;
- }
- public function setRefundRules($refundRules)
- {
- $this->refundRules = $refundRules;
- }
- }
- class PddTicketSkuRuleAddRequest_RefundLimitationsRefundRulesItem extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "ahead_time")
- */
- private $aheadTime;
- /**
- * @JsonProperty(Integer, "deduction_fee")
- */
- private $deductionFee;
- /**
- * @JsonProperty(Integer, "deduction_unit")
- */
- private $deductionUnit;
- /**
- * @JsonProperty(Integer, "type")
- */
- private $type;
- public function setAheadTime($aheadTime)
- {
- $this->aheadTime = $aheadTime;
- }
- public function setDeductionFee($deductionFee)
- {
- $this->deductionFee = $deductionFee;
- }
- public function setDeductionUnit($deductionUnit)
- {
- $this->deductionUnit = $deductionUnit;
- }
- public function setType($type)
- {
- $this->type = $type;
- }
- }
- class PddTicketSkuRuleAddRequest_TravelerInfoLimitation extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "credential")
- */
- private $credential;
- /**
- * @JsonProperty(Integer, "name")
- */
- private $name;
- /**
- * @JsonProperty(Integer, "traveler_required")
- */
- private $travelerRequired;
- public function setCredential($credential)
- {
- $this->credential = $credential;
- }
- public function setName($name)
- {
- $this->name = $name;
- }
- public function setTravelerRequired($travelerRequired)
- {
- $this->travelerRequired = $travelerRequired;
- }
- }
- class PddTicketSkuRuleAddRequest_ValidLimitation extends PopBaseJsonEntity
- {
- public function __construct()
- {
- }
- /**
- * @JsonProperty(Integer, "days_time")
- */
- private $daysTime;
- /**
- * @JsonProperty(Long, "end_time")
- */
- private $endTime;
- /**
- * @JsonProperty(Long, "start_time")
- */
- private $startTime;
- /**
- * @JsonProperty(Integer, "time_type")
- */
- private $timeType;
- public function setDaysTime($daysTime)
- {
- $this->daysTime = $daysTime;
- }
- public function setEndTime($endTime)
- {
- $this->endTime = $endTime;
- }
- public function setStartTime($startTime)
- {
- $this->startTime = $startTime;
- }
- public function setTimeType($timeType)
- {
- $this->timeType = $timeType;
- }
- }
|