CreateSubscriptionPlan.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?php
  2. namespace HitPay\Request;
  3. /**
  4. * Class CreateSubscriptionPlan - https://staging.hit-pay.com/docs.html?shell#payment-requests
  5. *
  6. * @package HitPay\Request
  7. */
  8. class CreateSubscriptionPlan
  9. {
  10. /**
  11. * Amount related to the payment
  12. *
  13. * @var float
  14. */
  15. public $amount;
  16. /**
  17. * Currency related to the payment
  18. *
  19. * @var string
  20. */
  21. public $currency;
  22. /**
  23. * Plan name
  24. *
  25. * @var string
  26. */
  27. public $name;
  28. /**
  29. * Billing frequency (weekly / monthly / yearly /custom)
  30. *
  31. * @var string
  32. */
  33. public $cycle;
  34. /**
  35. * This field is only applicable when cycle = custom] It's the number of times the cycle will repeat.
  36. *
  37. * @var string
  38. */
  39. public $cycle_repeat;
  40. /**
  41. * This field is only applicable when cycle = custom] It's the frequency of the cycle [day / week / month / year
  42. *
  43. * @var string
  44. */
  45. public $cycle_frequency;
  46. /**
  47. * Arbitrary reference number that you can map to your internal reference number.
  48. * This value cannot be edited by the customer
  49. *
  50. * @var string
  51. */
  52. public $reference;
  53. /**
  54. * @return float
  55. */
  56. public function getAmount()
  57. {
  58. return $this->amount;
  59. }
  60. /**
  61. * @return string
  62. */
  63. public function getCurrency()
  64. {
  65. return $this->currency;
  66. }
  67. /**
  68. * @return string
  69. */
  70. public function getName()
  71. {
  72. return $this->name;
  73. }
  74. /**
  75. * @return string
  76. */
  77. public function getCycle()
  78. {
  79. return $this->cycle;
  80. }
  81. /**
  82. * @return string
  83. */
  84. public function getCycleRepeat()
  85. {
  86. return $this->cycle_repeat;
  87. }
  88. /**
  89. * @return string
  90. */
  91. public function getCycleFrequency()
  92. {
  93. return $this->cycle_frequency;
  94. }
  95. /**
  96. * @return string
  97. */
  98. public function getReference()
  99. {
  100. return $this->reference;
  101. }
  102. /**
  103. * @param float $amount
  104. * @return CreateSubscriptionPlan
  105. */
  106. public function setAmount($amount)
  107. {
  108. $this->amount = $amount;
  109. return $this;
  110. }
  111. /**
  112. * @param string $currency
  113. * @return CreateSubscriptionPlan
  114. */
  115. public function setCurrency($currency)
  116. {
  117. $this->currency = $currency;
  118. return $this;
  119. }
  120. /**
  121. * @param string $name
  122. * @return CreateSubscriptionPlan
  123. */
  124. public function setName($name)
  125. {
  126. $this->name = $name;
  127. return $this;
  128. }
  129. /**
  130. * @param sring $cycle
  131. * @return CreateSubscriptionPlan
  132. */
  133. public function setCycle($cycle)
  134. {
  135. $this->cycle = $cycle;
  136. return $this;
  137. }
  138. /**
  139. * @param sring $cycle
  140. * @return CreateSubscriptionPlan
  141. */
  142. public function setCycleRepeat($cycle_repeat)
  143. {
  144. $this->cycle_repeat = $cycle_repeat;
  145. return $this;
  146. }
  147. /**
  148. * @param sring $cycle
  149. * @return CreateSubscriptionPlan
  150. */
  151. public function setCycleFrequency($cycle_frequency)
  152. {
  153. $this->cycle_frequency = $cycle_frequency;
  154. return $this;
  155. }
  156. /**
  157. * @param string $reference
  158. * @return CreateSubscriptionPlan
  159. */
  160. public function setReference($reference)
  161. {
  162. $this->reference = $reference;
  163. return $this;
  164. }
  165. }