1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class ExternalFunding
9 *
10 * A resource representing an external funding object.
11 *
12 * @package PayPal\Api
13 *
14 * @property string reference_id
15 * @property string code
16 * @property string funding_account_id
17 * @property string display_text
18 * @property \PayPal\Api\Amount amount
19 * @property string funding_instruction
20 */
21 class ExternalFunding extends PayPalModel
22 {
23 /**
24 * Unique identifier for the external funding
25 *
26 * @param string $reference_id
27 *
28 * @return $this
29 */
30 public function setReferenceId($reference_id)
31 {
32 $this->reference_id = $reference_id;
33 return $this;
34 }
35
36 /**
37 * Unique identifier for the external funding
38 *
39 * @return string
40 */
41 public function getReferenceId()
42 {
43 return $this->reference_id;
44 }
45
46 /**
47 * Generic identifier for the external funding
48 *
49 * @param string $code
50 *
51 * @return $this
52 */
53 public function setCode($code)
54 {
55 $this->code = $code;
56 return $this;
57 }
58
59 /**
60 * Generic identifier for the external funding
61 *
62 * @return string
63 */
64 public function getCode()
65 {
66 return $this->code;
67 }
68
69 /**
70 * Encrypted PayPal Account identifier for the funding account
71 *
72 * @param string $funding_account_id
73 *
74 * @return $this
75 */
76 public function setFundingAccountId($funding_account_id)
77 {
78 $this->funding_account_id = $funding_account_id;
79 return $this;
80 }
81
82 /**
83 * Encrypted PayPal Account identifier for the funding account
84 *
85 * @return string
86 */
87 public function getFundingAccountId()
88 {
89 return $this->funding_account_id;
90 }
91
92 /**
93 * Description of the external funding being applied
94 *
95 * @param string $display_text
96 *
97 * @return $this
98 */
99 public function setDisplayText($display_text)
100 {
101 $this->display_text = $display_text;
102 return $this;
103 }
104
105 /**
106 * Description of the external funding being applied
107 *
108 * @return string
109 */
110 public function getDisplayText()
111 {
112 return $this->display_text;
113 }
114
115 /**
116 * Amount being funded by the external funding account
117 *
118 * @param \PayPal\Api\Amount $amount
119 *
120 * @return $this
121 */
122 public function setAmount($amount)
123 {
124 $this->amount = $amount;
125 return $this;
126 }
127
128 /**
129 * Amount being funded by the external funding account
130 *
131 * @return \PayPal\Api\Amount
132 */
133 public function getAmount()
134 {
135 return $this->amount;
136 }
137
138 /**
139 * Indicates that the Payment should be fully funded by External Funded Incentive
140 * Valid Values: ["FULLY_FUNDED"]
141 *
142 * @param string $funding_instruction
143 *
144 * @return $this
145 */
146 public function setFundingInstruction($funding_instruction)
147 {
148 $this->funding_instruction = $funding_instruction;
149 return $this;
150 }
151
152 /**
153 * Indicates that the Payment should be fully funded by External Funded Incentive
154 *
155 * @return string
156 */
157 public function getFundingInstruction()
158 {
159 return $this->funding_instruction;
160 }
161 }
162