1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class PaymentTerm
9 *
10 * The payment term of the invoice. If you specify `term_type`, you cannot specify `due_date` and vice versa.
11 *
12 * @package PayPal\Api
13 *
14 * @property string term_type
15 * @property string due_date
16 */
17 class PaymentTerm extends PayPalModel
18 {
19 /**
20 * The terms by which the invoice payment is due.
21 * Valid Values: ["DUE_ON_RECEIPT", "DUE_ON_DATE_SPECIFIED", "NET_10", "NET_15", "NET_30", "NET_45", "NET_60", "NET_90", "NO_DUE_DATE"]
22 *
23 * @param string $term_type
24 *
25 * @return $this
26 */
27 public function setTermType($term_type)
28 {
29 $this->term_type = $term_type;
30 return $this;
31 }
32
33 /**
34 * The terms by which the invoice payment is due.
35 *
36 * @return string
37 */
38 public function getTermType()
39 {
40 return $this->term_type;
41 }
42
43 /**
44 * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
45 *
46 * @param string $due_date
47 *
48 * @return $this
49 */
50 public function setDueDate($due_date)
51 {
52 $this->due_date = $due_date;
53 return $this;
54 }
55
56 /**
57 * The date when the invoice payment is due. This date must be a future date. Date format is *yyyy*-*MM*-*dd* *z*, as defined in [Internet Date/Time Format](http://tools.ietf.org/html/rfc3339#section-5.6).
58 *
59 * @return string
60 */
61 public function getDueDate()
62 {
63 return $this->due_date;
64 }
65
66 }
67