This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/PaymentTerm.php
japatel 9c0827643b Renaming Namespaces and Organizing Classes
- Updated OpenId classes to be in API namespace
- Updated PP Naming Convention to PayPal Naming Convention
- FormatConverter Class got its own namespace
- Handlers are grouped in Handler namespace
- Samples and Tests Updated Accordingly
2014-12-18 14:16:41 -06:00

117 lines
2.7 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class PaymentTerm
*
* Payment term of the invoice. If term_type is present, due_date must not be present and vice versa.
*
* @package PayPal\Api
*
* @property string term_type
* @property string due_date
*/
class PaymentTerm extends PayPalModel
{
/**
* Terms by which the invoice payment is due.
* Valid Values: ["DUE_ON_RECEIPT", "NET_10", "NET_15", "NET_30", "NET_45"]
*
* @param string $term_type
*
* @return $this
*/
public function setTermType($term_type)
{
$this->term_type = $term_type;
return $this;
}
/**
* Terms by which the invoice payment is due.
*
* @return string
*/
public function getTermType()
{
return $this->term_type;
}
/**
* Terms by which the invoice payment is due.
*
* @deprecated Instead use setTermType
*
* @param string $term_type
* @return $this
*/
public function setTerm_type($term_type)
{
$this->term_type = $term_type;
return $this;
}
/**
* Terms by which the invoice payment is due.
* @deprecated Instead use getTermType
*
* @return string
*/
public function getTerm_type()
{
return $this->term_type;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @param string $due_date
*
* @return $this
*/
public function setDueDate($due_date)
{
$this->due_date = $due_date;
return $this;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @return string
*/
public function getDueDate()
{
return $this->due_date;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
*
* @deprecated Instead use setDueDate
*
* @param string $due_date
* @return $this
*/
public function setDue_date($due_date)
{
$this->due_date = $due_date;
return $this;
}
/**
* Date on which invoice payment is due. It must be always a future date. Date format yyyy-MM-dd z, as defined in [ISO8601](http://tools.ietf.org/html/rfc3339#section-5.6).
* @deprecated Instead use getDueDate
*
* @return string
*/
public function getDue_date()
{
return $this->due_date;
}
}