1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class Terms
9 *
10 * Resource representing terms used by the plan.
11 *
12 * @package PayPal\Api
13 *
14 * @property string id
15 * @property string type
16 * @property \PayPal\Api\Currency max_billing_amount
17 * @property string occurrences
18 * @property \PayPal\Api\Currency amount_range
19 * @property string buyer_editable
20 */
21 class Terms extends PayPalModel
22 {
23 /**
24 * Identifier of the terms. 128 characters max.
25 *
26 * @param string $id
27 *
28 * @return $this
29 */
30 public function setId($id)
31 {
32 $this->id = $id;
33 return $this;
34 }
35
36 /**
37 * Identifier of the terms. 128 characters max.
38 *
39 * @return string
40 */
41 public function getId()
42 {
43 return $this->id;
44 }
45
46 /**
47 * Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
48 *
49 * @param string $type
50 *
51 * @return $this
52 */
53 public function setType($type)
54 {
55 $this->type = $type;
56 return $this;
57 }
58
59 /**
60 * Term type. Allowed values: `MONTHLY`, `WEEKLY`, `YEARLY`.
61 *
62 * @return string
63 */
64 public function getType()
65 {
66 return $this->type;
67 }
68
69 /**
70 * Max Amount associated with this term.
71 *
72 * @param \PayPal\Api\Currency $max_billing_amount
73 *
74 * @return $this
75 */
76 public function setMaxBillingAmount($max_billing_amount)
77 {
78 $this->max_billing_amount = $max_billing_amount;
79 return $this;
80 }
81
82 /**
83 * Max Amount associated with this term.
84 *
85 * @return \PayPal\Api\Currency
86 */
87 public function getMaxBillingAmount()
88 {
89 return $this->max_billing_amount;
90 }
91
92 /**
93 * How many times money can be pulled during this term.
94 *
95 * @param string $occurrences
96 *
97 * @return $this
98 */
99 public function setOccurrences($occurrences)
100 {
101 $this->occurrences = $occurrences;
102 return $this;
103 }
104
105 /**
106 * How many times money can be pulled during this term.
107 *
108 * @return string
109 */
110 public function getOccurrences()
111 {
112 return $this->occurrences;
113 }
114
115 /**
116 * Amount_range associated with this term.
117 *
118 * @param \PayPal\Api\Currency $amount_range
119 *
120 * @return $this
121 */
122 public function setAmountRange($amount_range)
123 {
124 $this->amount_range = $amount_range;
125 return $this;
126 }
127
128 /**
129 * Amount_range associated with this term.
130 *
131 * @return \PayPal\Api\Currency
132 */
133 public function getAmountRange()
134 {
135 return $this->amount_range;
136 }
137
138 /**
139 * Buyer's ability to edit the amount in this term.
140 *
141 * @param string $buyer_editable
142 *
143 * @return $this
144 */
145 public function setBuyerEditable($buyer_editable)
146 {
147 $this->buyer_editable = $buyer_editable;
148 return $this;
149 }
150
151 /**
152 * Buyer's ability to edit the amount in this term.
153 *
154 * @return string
155 */
156 public function getBuyerEditable()
157 {
158 return $this->buyer_editable;
159 }
160
161 }
162