123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293 |
- <?php
- namespace HitPay\Response;
- /**
- * Class CreateSubscriptionPlan
- * @package HitPay\Response
- */
- class CreateSubscriptionPlan
- {
- /**
- * @var string
- */
- public $id;
- /**
- * @var string
- */
- public $name;
- /**
- * @var string
- */
- public $description;
- /**
- * @var string
- */
- public $cycle;
-
- /**
- * @var string
- */
- public $cycle_repeat;
-
- /**
- * @var string
- */
- public $cycle_frequency;
- /**
- * @var float
- */
- public $amount;
- /**
- * @var string
- */
- public $currency;
- /**
- * @var string
- */
- public $reference;
- /**
- * @var string
- */
- public $created_at;
- /**
- * @var string
- */
- public $updated_at;
- /**
- * CreateSubscriptionPlan constructor.
- * @param \stdClass $result
- */
- public function __construct(\stdClass $result)
- {
- $this->setId($result->id);
- $this->setName($result->name);
- $this->setDescription($result->description);
- $this->setCycle($result->cycle);
- $this->setAmount($result->amount);
- $this->setCurrency($result->currency);
- $this->setReference($result->reference);
- $this->setCreatedAt($result->created_at);
- $this->setUpdatedAt($result->updated_at);
- $this->setCycleRepeat($result->cycle_repeat);
- $this->setCycleFrequency($result->cycle_frequency);
- }
- /**
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * @return int
- */
- public function getCycle()
- {
- return $this->cycle;
- }
-
- /**
- * @return string
- */
- public function getCycleRepeat()
- {
- return $this->cycle_repeat;
- }
-
- /**
- * @return string
- */
- public function getCycleFrequency()
- {
- return $this->cycle_frequency;
- }
- /**
- * @return float
- */
- public function getAmount()
- {
- return $this->amount;
- }
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->currency;
- }
- /**
- * @return string
- */
- public function getReference()
- {
- return $this->reference;
- }
- /**
- * @return string
- */
- public function getCreatedAt()
- {
- return $this->created_at;
- }
- /**
- * @return string
- */
- public function getUpdatedAt()
- {
- return $this->updated_at;
- }
- /**
- * @param string $id
- * @return CreateSubscriptionPlan
- */
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
- /**
- * @param string $name
- * @return CreateSubscriptionPlan
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * @param string $description
- * @return CreateSubscriptionPlan
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * @param string $cycle
- * @return CreateSubscriptionPlan
- */
- public function setCycle($cycle)
- {
- $this->cycle = $cycle;
-
- return $this;
- }
-
- /**
- * @param sring $cycle
- * @return CreateSubscriptionPlan
- */
- public function setCycleRepeat($cycle_repeat)
- {
- $this->cycle_repeat = $cycle_repeat;
-
- return $this;
- }
-
- /**
- * @param sring $cycle
- * @return CreateSubscriptionPlan
- */
- public function setCycleFrequency($cycle_frequency)
- {
- $this->cycle_frequency = $cycle_frequency;
-
- return $this;
- }
- /**
- * @param float $amount
- * @return CreateSubscriptionPlan
- */
- public function setAmount($amount)
- {
- $this->amount = $amount;
- return $this;
- }
- /**
- * @param string $currency
- * @return CreateSubscriptionPlan
- */
- public function setCurrency($currency)
- {
- $this->currency = $currency;
- return $this;
- }
- /**
- * @param string $reference
- * @return CreateSubscriptionPlan
- */
- public function setReference($reference)
- {
- $this->reference = $reference;
- return $this;
- }
- /**
- * @param string $created_at
- * @return CreateSubscriptionPlan
- */
- public function setCreatedAt($created_at)
- {
- $this->created_at = $created_at;
- return $this;
- }
- /**
- * @param string $updated_at
- * @return CreateSubscriptionPlan
- */
- public function setUpdatedAt($updated_at)
- {
- $this->updated_at = $updated_at;
- return $this;
- }
- }
|