Removing Duplicate Invoicing Classes

- As they were never used for anything, removing it without deprecating
This commit is contained in:
japatel
2015-01-09 17:43:10 -06:00
parent f7cfd0faa9
commit 932cc8f6bd
4 changed files with 0 additions and 602 deletions

View File

@@ -1,259 +0,0 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
use PayPal\Validation\UrlValidator;
/**
* Class InvoicingMetaData
*
* Audit information of the resource.
*
* @package PayPal\Api
*
* @property string created_date
* @property string created_by
* @property string cancelled_date
* @property string cancelled_by
* @property string last_updated_date
* @property string last_updated_by
* @property string first_sent_date
* @property string last_sent_date
* @property string last_sent_by
* @property string payer_view_url
*/
class InvoicingMetaData extends PayPalModel
{
/**
* Date when the resource was created.
*
* @param string $created_date
*
* @return $this
*/
public function setCreatedDate($created_date)
{
$this->created_date = $created_date;
return $this;
}
/**
* Date when the resource was created.
*
* @return string
*/
public function getCreatedDate()
{
return $this->created_date;
}
/**
* Email address of the account that created the resource.
*
* @param string $created_by
*
* @return $this
*/
public function setCreatedBy($created_by)
{
$this->created_by = $created_by;
return $this;
}
/**
* Email address of the account that created the resource.
*
* @return string
*/
public function getCreatedBy()
{
return $this->created_by;
}
/**
* Date when the resource was cancelled.
*
* @param string $cancelled_date
*
* @return $this
*/
public function setCancelledDate($cancelled_date)
{
$this->cancelled_date = $cancelled_date;
return $this;
}
/**
* Date when the resource was cancelled.
*
* @return string
*/
public function getCancelledDate()
{
return $this->cancelled_date;
}
/**
* Actor who cancelled the resource.
*
* @param string $cancelled_by
*
* @return $this
*/
public function setCancelledBy($cancelled_by)
{
$this->cancelled_by = $cancelled_by;
return $this;
}
/**
* Actor who cancelled the resource.
*
* @return string
*/
public function getCancelledBy()
{
return $this->cancelled_by;
}
/**
* Date when the resource was last edited.
*
* @param string $last_updated_date
*
* @return $this
*/
public function setLastUpdatedDate($last_updated_date)
{
$this->last_updated_date = $last_updated_date;
return $this;
}
/**
* Date when the resource was last edited.
*
* @return string
*/
public function getLastUpdatedDate()
{
return $this->last_updated_date;
}
/**
* Email address of the account that last edited the resource.
*
* @param string $last_updated_by
*
* @return $this
*/
public function setLastUpdatedBy($last_updated_by)
{
$this->last_updated_by = $last_updated_by;
return $this;
}
/**
* Email address of the account that last edited the resource.
*
* @return string
*/
public function getLastUpdatedBy()
{
return $this->last_updated_by;
}
/**
* Date when the resource was first sent.
*
* @param string $first_sent_date
*
* @return $this
*/
public function setFirstSentDate($first_sent_date)
{
$this->first_sent_date = $first_sent_date;
return $this;
}
/**
* Date when the resource was first sent.
*
* @return string
*/
public function getFirstSentDate()
{
return $this->first_sent_date;
}
/**
* Date when the resource was last sent.
*
* @param string $last_sent_date
*
* @return $this
*/
public function setLastSentDate($last_sent_date)
{
$this->last_sent_date = $last_sent_date;
return $this;
}
/**
* Date when the resource was last sent.
*
* @return string
*/
public function getLastSentDate()
{
return $this->last_sent_date;
}
/**
* Email address of the account that last sent the resource.
*
* @param string $last_sent_by
*
* @return $this
*/
public function setLastSentBy($last_sent_by)
{
$this->last_sent_by = $last_sent_by;
return $this;
}
/**
* Email address of the account that last sent the resource.
*
* @return string
*/
public function getLastSentBy()
{
return $this->last_sent_by;
}
/**
* URL representing the payer's view of the invoice.
*
* @param string $payer_view_url
* @throws \InvalidArgumentException
* @return $this
*/
public function setPayerViewUrl($payer_view_url)
{
UrlValidator::validate($payer_view_url, "PayerViewUrl");
$this->payer_view_url = $payer_view_url;
return $this;
}
/**
* URL representing the payer's view of the invoice.
*
* @return string
*/
public function getPayerViewUrl()
{
return $this->payer_view_url;
}
}

View File

@@ -1,89 +0,0 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class InvoicingNotification
*
* Email/SMS notification.
*
* @package PayPal\Api
*
* @property string subject
* @property string note
* @property bool send_to_merchant
*/
class InvoicingNotification extends PayPalModel
{
/**
* Subject of the notification.
*
* @param string $subject
*
* @return $this
*/
public function setSubject($subject)
{
$this->subject = $subject;
return $this;
}
/**
* Subject of the notification.
*
* @return string
*/
public function getSubject()
{
return $this->subject;
}
/**
* Note to the payer.
*
* @param string $note
*
* @return $this
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Note to the payer.
*
* @return string
*/
public function getNote()
{
return $this->note;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
*
* @param bool $send_to_merchant
*
* @return $this
*/
public function setSendToMerchant($send_to_merchant)
{
$this->send_to_merchant = $send_to_merchant;
return $this;
}
/**
* A flag indicating whether a copy of the email has to be sent to the merchant.
*
* @return bool
*/
public function getSendToMerchant()
{
return $this->send_to_merchant;
}
}

View File

@@ -1,164 +0,0 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class InvoicingPaymentDetail
*
* Invoicing payment information.
*
* @package PayPal\Api
*
* @property string type
* @property string transaction_id
* @property string transaction_type
* @property string date
* @property string method
* @property string note
*/
class InvoicingPaymentDetail extends PayPalModel
{
/**
* PayPal payment detail indicating whether payment was made in an invoicing flow via PayPal or externally. In the case of the mark-as-paid API, payment type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
* Valid Values: ["PAYPAL", "EXTERNAL"]
*
* @param string $type
*
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* PayPal payment detail indicating whether payment was made in an invoicing flow via PayPal or externally. In the case of the mark-as-paid API, payment type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
*
* @param string $transaction_id
*
* @return $this
*/
public function setTransactionId($transaction_id)
{
$this->transaction_id = $transaction_id;
return $this;
}
/**
* PayPal payment transaction id. Mandatory field in case the type value is PAYPAL.
*
* @return string
*/
public function getTransactionId()
{
return $this->transaction_id;
}
/**
* Type of the transaction.
* Valid Values: ["SALE", "AUTHORIZATION", "CAPTURE"]
*
* @param string $transaction_type
*
* @return $this
*/
public function setTransactionType($transaction_type)
{
$this->transaction_type = $transaction_type;
return $this;
}
/**
* Type of the transaction.
*
* @return string
*/
public function getTransactionType()
{
return $this->transaction_type;
}
/**
* Date when the invoice was paid. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @param string $date
*
* @return $this
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Date when the invoice was paid. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* Payment mode or method. This field is mandatory if the value of the type field is EXTERNAL.
* Valid Values: ["BANK_TRANSFER", "CASH", "CHECK", "CREDIT_CARD", "DEBIT_CARD", "PAYPAL", "WIRE_TRANSFER", "OTHER"]
*
* @param string $method
*
* @return $this
*/
public function setMethod($method)
{
$this->method = $method;
return $this;
}
/**
* Payment mode or method. This field is mandatory if the value of the type field is EXTERNAL.
*
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Optional note associated with the payment.
*
* @param string $note
*
* @return $this
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Optional note associated with the payment.
*
* @return string
*/
public function getNote()
{
return $this->note;
}
}

View File

@@ -1,90 +0,0 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class InvoicingRefundDetail
*
* Invoicing refund information.
*
* @package PayPal\Api
*
* @property string type
* @property string date
* @property string note
*/
class InvoicingRefundDetail extends PayPalModel
{
/**
* PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
* Valid Values: ["PAYPAL", "EXTERNAL"]
*
* @param string $type
*
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @param string $date
*
* @return $this
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* Optional note associated with the refund.
*
* @param string $note
*
* @return $this
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Optional note associated with the refund.
*
* @return string
*/
public function getNote()
{
return $this->note;
}
}