1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class InstallmentOption
9 *
10 * A resource describing an installment
11 *
12 * @package PayPal\Api
13 *
14 * @property int term
15 * @property \PayPal\Api\Currency monthly_payment
16 * @property \PayPal\Api\Currency discount_amount
17 * @property string discount_percentage
18 */
19 class InstallmentOption extends PayPalModel
20 {
21 /**
22 * Number of installments
23 *
24 * @param int $term
25 *
26 * @return $this
27 */
28 public function setTerm($term)
29 {
30 $this->term = $term;
31 return $this;
32 }
33
34 /**
35 * Number of installments
36 *
37 * @return int
38 */
39 public function getTerm()
40 {
41 return $this->term;
42 }
43
44 /**
45 * Monthly payment
46 *
47 * @param \PayPal\Api\Currency $monthly_payment
48 *
49 * @return $this
50 */
51 public function setMonthlyPayment($monthly_payment)
52 {
53 $this->monthly_payment = $monthly_payment;
54 return $this;
55 }
56
57 /**
58 * Monthly payment
59 *
60 * @return \PayPal\Api\Currency
61 */
62 public function getMonthlyPayment()
63 {
64 return $this->monthly_payment;
65 }
66
67 /**
68 * Discount amount applied to the payment, if any
69 *
70 * @param \PayPal\Api\Currency $discount_amount
71 *
72 * @return $this
73 */
74 public function setDiscountAmount($discount_amount)
75 {
76 $this->discount_amount = $discount_amount;
77 return $this;
78 }
79
80 /**
81 * Discount amount applied to the payment, if any
82 *
83 * @return \PayPal\Api\Currency
84 */
85 public function getDiscountAmount()
86 {
87 return $this->discount_amount;
88 }
89
90 /**
91 * Discount percentage applied to the payment, if any
92 *
93 * @param string $discount_percentage
94 *
95 * @return $this
96 */
97 public function setDiscountPercentage($discount_percentage)
98 {
99 $this->discount_percentage = $discount_percentage;
100 return $this;
101 }
102
103 /**
104 * Discount percentage applied to the payment, if any
105 *
106 * @return string
107 */
108 public function getDiscountPercentage()
109 {
110 return $this->discount_percentage;
111 }
112
113 }
114