From 861d21f3a3bedbd4264064ba6cf02dea971fc09d Mon Sep 17 00:00:00 2001 From: Welling Guzman Date: Fri, 22 Apr 2016 21:21:53 -0400 Subject: [PATCH] remove unwanted file --- tests/Mock/CreateInvoiceItemRequest.php | 203 ------------------------ 1 file changed, 203 deletions(-) delete mode 100644 tests/Mock/CreateInvoiceItemRequest.php diff --git a/tests/Mock/CreateInvoiceItemRequest.php b/tests/Mock/CreateInvoiceItemRequest.php deleted file mode 100644 index 8578467b..00000000 --- a/tests/Mock/CreateInvoiceItemRequest.php +++ /dev/null @@ -1,203 +0,0 @@ -getParameter('invoiceItemReference'); - } - - /** - * Set the invoice-item reference - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setInvoiceItemReference($invoiceItemReference) - { - return $this->setParameter('invoiceItemReference', $invoiceItemReference); - } - - /** - * Get the invoice-item amount - * - * @return int - */ - public function getAmount() - { - return $this->getParameter('amount'); - } - - /** - * Set the invoice-item amount - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setAmount($value) - { - return $this->setParameter('amount', $value); - } - - /** - * Set the invoice-item currency - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setCurrency($currency) - { - return $this->setParameter('currency', $currency); - } - - /** - * Get the invoice-item currency - * - * @return string - */ - public function getCurrency() - { - return $this->getParameter('currency'); - } - - /** - * Set the invoice-item description - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setDescription($description) - { - return $this->setParameter('description', $description); - } - - /** - * Get the invoice-item description - * - * @return string - */ - public function getDescription() - { - return $this->getParameter('description'); - } - - /** - * Set the invoice-item discountable - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setDiscountable($discountable) - { - return $this->setParameter('discountable', $discountable); - } - - /** - * Get the invoice-item discountable - * - * @return string - */ - public function getDiscountable() - { - return $this->getParameter('discountable'); - } - - /** - * Set the invoice-item invoice reference - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setInvoiceReference($invoice) - { - return $this->setParameter('invoiceReference', $invoiceReference); - } - - /** - * Get the invoice-item invoice reference - * - * @return string - */ - public function getInvoiceReference() - { - return $this->getParameter('invoiceReference'); - } - - /** - * Set the invoice-item subscription reference - * - * @return CreateInvoiceItemRequest provides a fluent interface. - */ - public function setSubscriptionReference($subscriptionReference) - { - return $this->setParameter('subscriptionReference', $subscriptionReference); - } - - /** - * Get the invoice-item subscription reference - * - * @return string - */ - public function getSubscriptionReference() - { - return $this->getParameter('subscriptionReference'); - } - - public function getData() - { - $data = array(); - - if ($this->getInvoiceItemReference() == null) { - $this->validate('customerReference', 'amount', 'currency'); - } - - if ($this->getCustomerReference()) { - $data['customer'] = $this->getCustomerReference(); - } - - if ($this->getAmount()) { - $data['amount'] = $this->getAmount(); - } - - if ($this->getCurrency()) { - $data['currency'] = $this->getCurrency(); - } - - if ($this->getDescription()) { - $data['description'] = $this->getDescription(); - } - - if ($this->getDiscountable() != null) { - $data['discountable'] = $this->getDiscountable(); - } - - if ($this->getInvoiceReference()) { - $data['invoice'] = $this->getInvoiceReference(); - } - - if ($this->getSubscriptionReference()) { - $data['subcription'] = $this->getSubscriptionReference(); - } - - return $data; - } - - public function getEndpoint() - { - return $this->endpoint.'/invoiceitems' - .($this->getInvoiceItemReference() != null ? '/'.$this->getInvoiceItemReference() : ''); - } -}