amount = $amount; return $this; } /** * Amount being collected. * * @return \PayPal\Api\Amount */ public function getAmount() { return $this->amount; } /** * Recipient of the funds in this transaction. * * @param \PayPal\Api\Payee $payee * * @return $this */ public function setPayee($payee) { $this->payee = $payee; return $this; } /** * Recipient of the funds in this transaction. * * @return \PayPal\Api\Payee */ public function getPayee() { return $this->payee; } /** * Description of what is being paid for. * * @param string $description * * @return $this */ public function setDescription($description) { $this->description = $description; return $this; } /** * Description of what is being paid for. * * @return string */ public function getDescription() { return $this->description; } /** * Note to the recipient of the funds in this transaction. * * @param string $note_to_payee * * @return $this */ public function setNoteToPayee($note_to_payee) { $this->note_to_payee = $note_to_payee; return $this; } /** * Note to the recipient of the funds in this transaction. * * @return string */ public function getNoteToPayee() { return $this->note_to_payee; } /** * Note to the recipient of the funds in this transaction. * * * @param string $custom * * @return $this */ public function setCustom($custom) { $this->custom = $custom; return $this; } /** * free-form field for the use of clients * * @return string */ public function getCustom() { return $this->custom; } /** * invoice number to track this payment * * @param string $invoice_number * * @return $this */ public function setInvoiceNumber($invoice_number) { $this->invoice_number = $invoice_number; return $this; } /** * invoice number to track this payment * * @return string */ public function getInvoiceNumber() { return $this->invoice_number; } /** * Soft descriptor used when charging this funding source. * * * @param string $soft_descriptor * * @return $this */ public function setSoftDescriptor($soft_descriptor) { $this->soft_descriptor = $soft_descriptor; return $this; } /** * Soft descriptor used when charging this funding source. * * @return string */ public function getSoftDescriptor() { return $this->soft_descriptor; } /** * Payment options requested for this purchase unit * * * @param \PayPal\Api\PaymentOptions $payment_options * * @return $this */ public function setPaymentOptions($payment_options) { $this->payment_options = $payment_options; return $this; } /** * Payment options requested for this purchase unit * * @return \PayPal\Api\PaymentOptions */ public function getPaymentOptions() { return $this->payment_options; } /** * List of items being paid for. * * @param \PayPal\Api\ItemList $item_list * * @return $this */ public function setItemList($item_list) { $this->item_list = $item_list; return $this; } /** * List of items being paid for. * * @return \PayPal\Api\ItemList */ public function getItemList() { return $this->item_list; } /** * URL to send payment notifications * * @param string $notify_url * @throws \InvalidArgumentException * @return $this */ public function setNotifyUrl($notify_url) { UrlValidator::validate($notify_url, "NotifyUrl"); $this->notify_url = $notify_url; return $this; } /** * URL to send payment notifications * * @return string */ public function getNotifyUrl() { return $this->notify_url; } /** * Url on merchant site pertaining to this payment. * * @param string $order_url * @throws \InvalidArgumentException * @return $this */ public function setOrderUrl($order_url) { UrlValidator::validate($order_url, "OrderUrl"); $this->order_url = $order_url; return $this; } /** * Url on merchant site pertaining to this payment. * * @return string */ public function getOrderUrl() { return $this->order_url; } }