123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?php
- namespace HitPay\Request;
- /**
- * Class CreatePayment - https://staging.hit-pay.com/docs.html?shell#payment-requests
- *
- * @package HitPay\Request
- */
- class CreatePayment
- {
- /**
- * Amount related to the payment
- *
- * @var float
- */
- public $amount;
- /**
- * Currency related to the payment
- *
- * @var string
- */
- public $currency;
- /**
- * Choice of payment methods you want to offer the customer
- *
- * @var array
- */
- public $payment_methods;
- /**
- * Buyer’s email
- *
- * @var string
- */
- public $email;
- /**
- * Purpose of the Payment request FIFA 16
- *
- * @var
- */
- public $purpose;
- /**
- * Buyer’s name
- *
- * @var string
- */
- public $name;
- /**
- * Buyer’s phone number
- *
- * @var int
- */
- public $phone;
- /**
- * Arbitrary reference number that you can map to your internal reference number.
- * This value cannot be edited by the customer
- *
- * @var string
- */
- public $reference_number;
- /**
- * URL where we redirect the user after a payment.
- * Query arguments payment_request_id and status are sent along
- *
- * @var string
- */
- public $redirect_url;
- /**
- * URL where our server do POST request after a payment If done
- *
- * @var string
- */
- public $webhook;
- /**
- * If set is true, multiple payments can be paid on a payment request link. Default value is false
- *
- * @var bool
- */
- public $allow_repeated_payments;
- /**
- * Time after which the payment link will be expired.Applicable for repeated payments. Default is Null
- *
- * @var null
- */
- public $expiry_date;
- /**
- * @var string
- */
- public $channel;
- /**
- * @return float
- */
- public function getAmount()
- {
- return $this->amount;
- }
- /**
- * @return string
- */
- public function getCurrency()
- {
- return $this->currency;
- }
- /**
- * @return array
- */
- public function getPaymentMethods()
- {
- return $this->payment_methods;
- }
- /**
- * @return string
- */
- public function getEmail()
- {
- return $this->email;
- }
- /**
- * @return mixed
- */
- public function getPurpose()
- {
- return $this->purpose;
- }
- /**
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * @return int
- */
- public function getPhone()
- {
- return $this->phone;
- }
- /**
- * @return string
- */
- public function getReferenceNumber()
- {
- return $this->reference_number;
- }
- /**
- * @return string
- */
- public function getRedirectUrl()
- {
- return $this->redirect_url;
- }
- /**
- * @return string
- */
- public function getWebhook()
- {
- return $this->webhook;
- }
- /**
- * @return bool
- */
- public function isAllowRepeatedPayments()
- {
- return $this->allow_repeated_payments;
- }
- /**
- * @return null
- */
- public function getExpiryDate()
- {
- return $this->expiry_date;
- }
- /**
- * @param float $amount
- * @return CreatePayment
- */
- public function setAmount($amount)
- {
- $this->amount = $amount;
- return $this;
- }
- /**
- * @param string $currency
- * @return CreatePayment
- */
- public function setCurrency($currency)
- {
- $this->currency = $currency;
- return $this;
- }
- /**
- * @param array $payment_methods
- * @return CreatePayment
- */
- public function setPaymentMethods($payment_methods)
- {
- $this->payment_methods = $payment_methods;
- return $this;
- }
- /**
- * @param string $email
- * @return CreatePayment
- */
- public function setEmail($email)
- {
- $this->email = $email;
- return $this;
- }
- /**
- * @param mixed $purpose
- * @return CreatePayment
- */
- public function setPurpose($purpose)
- {
- $this->purpose = $purpose;
- return $this;
- }
- /**
- * @param string $name
- * @return CreatePayment
- */
- public function setName($name)
- {
- $this->name = $name;
- return $this;
- }
- /**
- * @param int $phone
- * @return CreatePayment
- */
- public function setPhone($phone)
- {
- $this->phone = $phone;
- return $this;
- }
- /**
- * @param string $reference_number
- * @return CreatePayment
- */
- public function setReferenceNumber($reference_number)
- {
- $this->reference_number = $reference_number;
- return $this;
- }
- /**
- * @param string $redirect_url
- * @return CreatePayment
- */
- public function setRedirectUrl($redirect_url)
- {
- $this->redirect_url = $redirect_url;
- return $this;
- }
- /**
- * @param string $webhook
- * @return CreatePayment
- */
- public function setWebhook($webhook)
- {
- $this->webhook = $webhook;
- return $this;
- }
- /**
- * @param bool $allow_repeated_payments
- * @return CreatePayment
- */
- public function setAllowRepeatedPayments($allow_repeated_payments)
- {
- $this->allow_repeated_payments = $allow_repeated_payments;
- return $this;
- }
- /**
- * @param null $expiry_date
- * @return CreatePayment
- */
- public function setExpiryDate($expiry_date)
- {
- $this->expiry_date = $expiry_date;
- return $this;
- }
- /**
- * @return string
- */
- public function getChannel()
- {
- return $this->channel;
- }
- /**
- * @param string $channel
- * @return CreatePayment
- */
- public function setChannel($channel)
- {
- $this->channel = $channel;
- return $this;
- }
- }
|