123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617 |
- <?php
- namespace HitPay\Response;
- /**
- * Class RecurringBilling
- * @package HitPay\Response
- */
- class RecurringBilling
- {
- /**
- * @var string
- */
- public $id;
-
- /**
- * @var string
- */
- public $business_recurring_plans_id;
- /**
- * @var string
- */
- public $customer_name;
-
- /**
- * @var string
- */
- public $customer_email;
-
- /**
- * @var string
- */
- public $name;
- /**
- * @var string
- */
- public $description;
-
- /**
- * @var string
- */
- public $reference;
- /**
- * @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 $created_at;
- /**
- * @var string
- */
- public $updated_at;
-
- /**
- * @var string
- */
- public $expires_at;
-
- /**
- * @var string
- */
- public $status;
-
- /**
- * @var array
- */
- public $payment_methods = array();
-
- /**
- * @var string
- */
- public $redirect_url;
- /**
- * @var string
- */
- public $url;
-
- /**
- * @var string
- */
- public $times_to_be_charged;
-
- /**
- * @var string
- */
- public $times_charged;
-
- /**
- * @var string
- */
- public $webhook;
- /**
- * @var string
- */
- public $save_card;
-
- /**
- * @var string
- */
- public $send_email;
- /**
- * RecurringBilling constructor.
- * @param \stdClass $result
- */
- public function __construct(\stdClass $result)
- {
- $this->setId($result->id);
- $this->setBusinessRecurringPlansId($result->business_recurring_plans_id);
- $this->setCustomerName($result->customer_name);
- $this->setCustomerEmail($result->customer_email);
- $this->setName($result->name);
- $this->setDescription($result->description);
- $this->setCycle($result->cycle);
- $this->setAmount($result->amount);
- $this->setCurrency($result->currency);
- $this->setStatus($result->status);
- $this->setTimesToBeCharged($result->times_to_be_charged);
- $this->setTimesCharged($result->times_charged);
- $this->setCreatedAt($result->created_at);
- $this->setUpdatedAt($result->updated_at);
- $this->setExpiresAt($result->expires_at);
- $this->setRedirectUrl($result->redirect_url);
- $this->setUrl($result->url);
- $this->setPaymentMethods($result->payment_methods);
- $this->setReference($result->reference);
- $this->setCycleRepeat($result->cycle_repeat);
- $this->setCycleFrequency($result->cycle_frequency);
- $this->setWebhook($result->webhook);
- $this->setSaveCard($result->save_card);
- $this->setSendEmail($result->send_email);
- }
- /**
- * @param string $id
- * @return RecurringBIlling
- */
- public function setId($id)
- {
- $this->id = $id;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getId()
- {
- return $this->id;
- }
-
- /**
- * @param string $business_recurring_plans_id
- * @return RecurringBIlling
- */
- public function setBusinessRecurringPlansId($business_recurring_plans_id)
- {
- $this->business_recurring_plans_id = $business_recurring_plans_id;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getBusinessRecurringPlansId()
- {
- return $this->business_recurring_plans_id;
- }
-
- /**
- * @param string $customer_name
- * @return RecurringBIlling
- */
- public function setCustomerName($customer_name)
- {
- $this->customer_name = $customer_name;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getCustomerName()
- {
- return $this->customer_name;
- }
-
- /**
- * @param float $customer_email
- * @return RecurringBIlling
- */
- public function setCustomerEmail($customer_email)
- {
- $this->customer_email = $customer_email;
- return $this;
- }
- /**
- * @return string
- */
- public function getCustomerEmail()
- {
- return $this->customer_email;
- }
-
- /**
- * @param string $name
- * @return RecurringBIlling
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
-
- /**
- * @param string $description
- * @return RecurringBIlling
- */
- public function setDescription($description)
- {
- $this->description = $description;
- return $this;
- }
- /**
- * @return string
- */
- public function getDescription()
- {
- return $this->description;
- }
-
- /**
- * @param string $cycle
- * @return RecurringBIlling
- */
- public function setCycle($cycle)
- {
- $this->cycle = $cycle;
- }
- /**
- * @return int
- */
- public function getCycle()
- {
- return $this->cycle;
- }
-
- /**
- * @param string $currency
- * @return RecurringBIlling
- */
- public function setCurrency($currency)
- {
- $this->currency = $currency;
- return $this;
- }
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->currency;
- }
-
- /**
- * @param float $amount
- * @return RecurringBIlling
- */
- public function setAmount($amount)
- {
- $this->amount = $amount;
- return $this;
- }
- /**
- * @return float
- */
- public function getAmount()
- {
- return $this->amount;
- }
-
- /**
- * @param string $times_to_be_charged
- * @return RecurringBIlling
- */
- public function setTimesToBeCharged($times_to_be_charged)
- {
- $this->times_to_be_charged = $times_to_be_charged;
- return $this;
- }
- /**
- * @return string
- */
- public function getTimesToBeCharged()
- {
- return $this->times_to_be_charged;
- }
-
- /**
- * @param string $times_charged
- * @return RecurringBIlling
- */
- public function setTimesCharged($times_charged)
- {
- $this->times_charged = $times_charged;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getTimesCharged()
- {
- return $this->times_charged;
- }
-
- /**
- * @param string $status
- * @return RecurringBIlling
- */
- public function setStatus($status)
- {
- $this->status = $status;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getStatus()
- {
- return $this->status;
- }
-
- /**
- * @param string $redirect_url
- * @return RecurringBIlling
- */
- public function setRedirectUrl($redirect_url)
- {
- $this->redirect_url = $redirect_url;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getRedirectUrl()
- {
- return $this->redirect_url;
- }
-
- /**
- * @param array $payment_methods
- * @return RecurringBIlling
- */
- public function setPaymentMethods($payment_methods)
- {
- $this->payment_methods = $payment_methods;
- return $this;
- }
-
- /**
- * @return array
- */
- public function getPaymentMethods()
- {
- return $this->payment_methods;
- }
-
- /**
- * @param string $created_at
- * @return RecurringBIlling
- */
- public function setCreatedAt($created_at)
- {
- $this->created_at = $created_at;
- return $this;
- }
- /**
- * @return string
- */
- public function getCreatedAt()
- {
- return $this->created_at;
- }
-
- /**
- * @param string $updated_at
- * @return RecurringBIlling
- */
- public function setUpdatedAt($updated_at)
- {
- $this->updated_at = $updated_at;
- return $this;
- }
- /**
- * @return string
- */
- public function getUpdatedAt()
- {
- return $this->updated_at;
- }
- /**
- * @param string $expires_at
- * @return RecurringBIlling
- */
- public function setExpiresAt($expires_at)
- {
- $this->expires_at = $expires_at;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getExpiresAt()
- {
- return $this->expires_at;
- }
-
- /**
- * @param string $url
- * @return RecurringBIlling
- */
- public function setUrl($url)
- {
- $this->url = $url;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getUrl()
- {
- return $this->url;
- }
-
- /**
- * @return string
- */
- public function getReference()
- {
- return $this->reference;
- }
-
- /**
- * @param string $reference
- * @return RecurringBIlling
- */
- public function setReference($reference)
- {
- $this->reference = $reference;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getCycleRepeat()
- {
- return $this->cycle_repeat;
- }
-
- /**
- * @return string
- */
- public function getCycleFrequency()
- {
- return $this->cycle_frequency;
- }
-
-
- /**
- * @param sring $cycle
- * @return RecurringBIlling
- */
- public function setCycleRepeat($cycle_repeat)
- {
- $this->cycle_repeat = $cycle_repeat;
-
- return $this;
- }
-
- /**
- * @param sring $cycle
- * @return RecurringBIlling
- */
- public function setCycleFrequency($cycle_frequency)
- {
- $this->cycle_frequency = $cycle_frequency;
-
- return $this;
- }
-
- /**
- * @param string $webhook
- * @return RecurringBIlling
- */
- public function setWebhook($webhook)
- {
- $this->webhook = $webhook;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getWebhook()
- {
- return $this->webhook;
- }
-
- /**
- * @param sring $save_card
- * @return RecurringBIlling
- */
- public function setSaveCard($save_card)
- {
- $this->save_card = $save_card;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSaveCard()
- {
- return $this->save_card;
- }
-
- /**
- * @param sring $send_email
- * @return RecurringBIlling
- */
- public function setSendEmail($send_email)
- {
- $this->send_email = $send_email;
- return $this;
- }
-
- /**
- * @return string
- */
- public function getSendEmail()
- {
- return $this->send_email;
- }
- }
|