1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class CreditFinancingOffered
9 *
10 * Credit financing offered to customer on PayPal side with opt-in/opt-out status
11 *
12 * @package PayPal\Api
13 *
14 * @property \PayPal\Api\Currency total_cost
15 * @property \PayPal\Api\number term
16 * @property \PayPal\Api\Currency monthly_payment
17 * @property \PayPal\Api\Currency total_interest
18 * @property bool payer_acceptance
19 * @property bool cart_amount_immutable
20 */
21 class CreditFinancingOffered extends PayPalModel
22 {
23 /**
24 * This is the estimated total payment amount including interest and fees the user will pay during the lifetime of the loan.
25 *
26 * @param \PayPal\Api\Currency $total_cost
27 *
28 * @return $this
29 */
30 public function setTotalCost($total_cost)
31 {
32 $this->total_cost = $total_cost;
33 return $this;
34 }
35
36 /**
37 * This is the estimated total payment amount including interest and fees the user will pay during the lifetime of the loan.
38 *
39 * @return \PayPal\Api\Currency
40 */
41 public function getTotalCost()
42 {
43 return $this->total_cost;
44 }
45
46 /**
47 * Length of financing terms in month
48 *
49 * @param \PayPal\Api\number $term
50 *
51 * @return $this
52 */
53 public function setTerm($term)
54 {
55 $this->term = $term;
56 return $this;
57 }
58
59 /**
60 * Length of financing terms in month
61 *
62 * @return \PayPal\Api\number
63 */
64 public function getTerm()
65 {
66 return $this->term;
67 }
68
69 /**
70 * This is the estimated amount per month that the customer will need to pay including fees and interest.
71 *
72 * @param \PayPal\Api\Currency $monthly_payment
73 *
74 * @return $this
75 */
76 public function setMonthlyPayment($monthly_payment)
77 {
78 $this->monthly_payment = $monthly_payment;
79 return $this;
80 }
81
82 /**
83 * This is the estimated amount per month that the customer will need to pay including fees and interest.
84 *
85 * @return \PayPal\Api\Currency
86 */
87 public function getMonthlyPayment()
88 {
89 return $this->monthly_payment;
90 }
91
92 /**
93 * Estimated interest or fees amount the payer will have to pay during the lifetime of the loan.
94 *
95 * @param \PayPal\Api\Currency $total_interest
96 *
97 * @return $this
98 */
99 public function setTotalInterest($total_interest)
100 {
101 $this->total_interest = $total_interest;
102 return $this;
103 }
104
105 /**
106 * Estimated interest or fees amount the payer will have to pay during the lifetime of the loan.
107 *
108 * @return \PayPal\Api\Currency
109 */
110 public function getTotalInterest()
111 {
112 return $this->total_interest;
113 }
114
115 /**
116 * Status on whether the customer ultimately was approved for and chose to make the payment using the approved installment credit.
117 *
118 * @param bool $payer_acceptance
119 *
120 * @return $this
121 */
122 public function setPayerAcceptance($payer_acceptance)
123 {
124 $this->payer_acceptance = $payer_acceptance;
125 return $this;
126 }
127
128 /**
129 * Status on whether the customer ultimately was approved for and chose to make the payment using the approved installment credit.
130 *
131 * @return bool
132 */
133 public function getPayerAcceptance()
134 {
135 return $this->payer_acceptance;
136 }
137
138 /**
139 * Indicates whether the cart amount is editable after payer's acceptance on PayPal side
140 *
141 * @param bool $cart_amount_immutable
142 *
143 * @return $this
144 */
145 public function setCartAmountImmutable($cart_amount_immutable)
146 {
147 $this->cart_amount_immutable = $cart_amount_immutable;
148 return $this;
149 }
150
151 /**
152 * Indicates whether the cart amount is editable after payer's acceptance on PayPal side
153 *
154 * @return bool
155 */
156 public function getCartAmountImmutable()
157 {
158 return $this->cart_amount_immutable;
159 }
160
161 }
162