forked from LiveCarta/PayPal-PHP-SDK
First Update on Invoicing APIs
This commit is contained in:
@@ -1,15 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
/**
|
||||
* 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 PPModel
|
||||
{
|
||||
/**
|
||||
* 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)
|
||||
{
|
||||
@@ -30,8 +43,10 @@ class PaymentTerm extends PPModel
|
||||
/**
|
||||
* Terms by which the invoice payment is due.
|
||||
*
|
||||
* @deprecated Instead use setTermType
|
||||
*
|
||||
* @param string $term_type
|
||||
* @deprecated. Instead use setTermType
|
||||
* @return $this
|
||||
*/
|
||||
public function setTerm_type($term_type)
|
||||
{
|
||||
@@ -41,9 +56,9 @@ class PaymentTerm extends PPModel
|
||||
|
||||
/**
|
||||
* Terms by which the invoice payment is due.
|
||||
* @deprecated Instead use getTermType
|
||||
*
|
||||
* @return string
|
||||
* @deprecated. Instead use getTermType
|
||||
*/
|
||||
public function getTerm_type()
|
||||
{
|
||||
@@ -51,9 +66,11 @@ class PaymentTerm extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which invoice payment is due. It must be always a future date. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST
|
||||
* 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)
|
||||
{
|
||||
@@ -62,7 +79,7 @@ class PaymentTerm extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which invoice payment is due. It must be always a future date. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST
|
||||
* 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
|
||||
*/
|
||||
@@ -72,10 +89,12 @@ class PaymentTerm extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which invoice payment is due. It must be always a future date. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST
|
||||
* 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
|
||||
* @deprecated. Instead use setDueDate
|
||||
* @return $this
|
||||
*/
|
||||
public function setDue_date($due_date)
|
||||
{
|
||||
@@ -84,10 +103,10 @@ class PaymentTerm extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Date on which invoice payment is due. It must be always a future date. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST
|
||||
* 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
|
||||
* @deprecated. Instead use getDueDate
|
||||
*/
|
||||
public function getDue_date()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user