123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195 |
- <?php
- namespace HitPay\Request;
- /**
- * Class CreateSubscriptionPlan - https://staging.hit-pay.com/docs.html?shell#payment-requests
- *
- * @package HitPay\Request
- */
- class CreateSubscriptionPlan
- {
- /**
- * Amount related to the payment
- *
- * @var float
- */
- public $amount;
- /**
- * Currency related to the payment
- *
- * @var string
- */
- public $currency;
- /**
- * Plan name
- *
- * @var string
- */
- public $name;
- /**
- * Billing frequency (weekly / monthly / yearly /custom)
- *
- * @var string
- */
- public $cycle;
-
- /**
- * This field is only applicable when cycle = custom] It's the number of times the cycle will repeat.
- *
- * @var string
- */
- public $cycle_repeat;
-
- /**
- * This field is only applicable when cycle = custom] It's the frequency of the cycle [day / week / month / year
- *
- * @var string
- */
- public $cycle_frequency;
- /**
- * Arbitrary reference number that you can map to your internal reference number.
- * This value cannot be edited by the customer
- *
- * @var string
- */
- public $reference;
- /**
- * @return float
- */
- public function getAmount()
- {
- return $this->amount;
- }
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->currency;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @return string
- */
- 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 string
- */
- public function getReference()
- {
- return $this->reference;
- }
-
- /**
- * @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 $name
- * @return CreateSubscriptionPlan
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * @param sring $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 string $reference
- * @return CreateSubscriptionPlan
- */
- public function setReference($reference)
- {
- $this->reference = $reference;
- return $this;
- }
- }
|