Skip to content

Commit 60a13c8

Browse files
committed
Regenerated code based on the latest tag
1 parent dbe2472 commit 60a13c8

File tree

5 files changed

+1103
-1
lines changed

5 files changed

+1103
-1
lines changed
Lines changed: 361 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,361 @@
1+
<?php
2+
namespace bunq\Model\Generated\Endpoint;
3+
4+
use bunq\Model\Core\BunqModel;
5+
use bunq\Model\Generated\Object\BirdeeInvestmentPortfolioGoal;
6+
7+
/**
8+
* Endpoint for interacting with the investment portfolio opened at Birdee.
9+
*
10+
* @generated
11+
*/
12+
class BirdeeInvestmentPortfolio extends BunqModel
13+
{
14+
/**
15+
* Field constants.
16+
*/
17+
const FIELD_RISK_PROFILE_TYPE = 'risk_profile_type';
18+
const FIELD_INVESTMENT_THEME = 'investment_theme';
19+
const FIELD_NAME = 'name';
20+
const FIELD_GOAL = 'goal';
21+
22+
/**
23+
* Status of the portfolio.
24+
*
25+
* @var string
26+
*/
27+
protected $status;
28+
29+
/**
30+
* The type of risk profile associated with the portfolio.
31+
*
32+
* @var string
33+
*/
34+
protected $riskProfileType;
35+
36+
/**
37+
* The investment theme.
38+
*
39+
* @var string
40+
*/
41+
protected $investmentTheme;
42+
43+
/**
44+
* Maximum number of strategy changes in a year.
45+
*
46+
* @var int
47+
*/
48+
protected $numberOfStrategyChangeAnnualMaximum;
49+
50+
/**
51+
* Maximum number of strategy changes used.
52+
*
53+
* @var int
54+
*/
55+
protected $numberOfStrategyChangeAnnualUsed;
56+
57+
/**
58+
* The name associated with the investment portfolio.
59+
*
60+
* @var string
61+
*/
62+
protected $name;
63+
64+
/**
65+
* The investment goal.
66+
*
67+
* @var BirdeeInvestmentPortfolioGoal|null
68+
*/
69+
protected $goal;
70+
71+
/**
72+
* The investment portfolio balance.
73+
*
74+
* @var BirdeeInvestmentPortfolioBalance
75+
*/
76+
protected $balance;
77+
78+
/**
79+
* The allocations of the investment portfolio.
80+
*
81+
* @var BirdeePortfolioAllocation[]
82+
*/
83+
protected $allocations;
84+
85+
/**
86+
* The type of risk profile associated with the portfolio.
87+
*
88+
* @var string
89+
*/
90+
protected $riskProfileTypeFieldForRequest;
91+
92+
/**
93+
* The investment theme.
94+
*
95+
* @var string
96+
*/
97+
protected $investmentThemeFieldForRequest;
98+
99+
/**
100+
* The name associated with the investment portfolio.
101+
*
102+
* @var string|null
103+
*/
104+
protected $nameFieldForRequest;
105+
106+
/**
107+
* The investment goal.
108+
*
109+
* @var BirdeeInvestmentPortfolioGoal|null
110+
*/
111+
protected $goalFieldForRequest;
112+
113+
/**
114+
* @param string $riskProfileType The type of risk profile associated with
115+
* the portfolio.
116+
* @param string $investmentTheme The investment theme.
117+
* @param string|null $name The name associated with the investment
118+
* portfolio.
119+
* @param BirdeeInvestmentPortfolioGoal|null $goal The investment goal.
120+
*/
121+
public function __construct(string $riskProfileType, string $investmentTheme, string $name = null, BirdeeInvestmentPortfolioGoal $goal = null)
122+
{
123+
$this->riskProfileTypeFieldForRequest = $riskProfileType;
124+
$this->investmentThemeFieldForRequest = $investmentTheme;
125+
$this->nameFieldForRequest = $name;
126+
$this->goalFieldForRequest = $goal;
127+
}
128+
129+
/**
130+
* Status of the portfolio.
131+
*
132+
* @return string
133+
*/
134+
public function getStatus()
135+
{
136+
return $this->status;
137+
}
138+
139+
/**
140+
* @deprecated User should not be able to set values via setters, use
141+
* constructor.
142+
*
143+
* @param string $status
144+
*/
145+
public function setStatus($status)
146+
{
147+
$this->status = $status;
148+
}
149+
150+
/**
151+
* The type of risk profile associated with the portfolio.
152+
*
153+
* @return string
154+
*/
155+
public function getRiskProfileType()
156+
{
157+
return $this->riskProfileType;
158+
}
159+
160+
/**
161+
* @deprecated User should not be able to set values via setters, use
162+
* constructor.
163+
*
164+
* @param string $riskProfileType
165+
*/
166+
public function setRiskProfileType($riskProfileType)
167+
{
168+
$this->riskProfileType = $riskProfileType;
169+
}
170+
171+
/**
172+
* The investment theme.
173+
*
174+
* @return string
175+
*/
176+
public function getInvestmentTheme()
177+
{
178+
return $this->investmentTheme;
179+
}
180+
181+
/**
182+
* @deprecated User should not be able to set values via setters, use
183+
* constructor.
184+
*
185+
* @param string $investmentTheme
186+
*/
187+
public function setInvestmentTheme($investmentTheme)
188+
{
189+
$this->investmentTheme = $investmentTheme;
190+
}
191+
192+
/**
193+
* Maximum number of strategy changes in a year.
194+
*
195+
* @return int
196+
*/
197+
public function getNumberOfStrategyChangeAnnualMaximum()
198+
{
199+
return $this->numberOfStrategyChangeAnnualMaximum;
200+
}
201+
202+
/**
203+
* @deprecated User should not be able to set values via setters, use
204+
* constructor.
205+
*
206+
* @param int $numberOfStrategyChangeAnnualMaximum
207+
*/
208+
public function setNumberOfStrategyChangeAnnualMaximum($numberOfStrategyChangeAnnualMaximum)
209+
{
210+
$this->numberOfStrategyChangeAnnualMaximum = $numberOfStrategyChangeAnnualMaximum;
211+
}
212+
213+
/**
214+
* Maximum number of strategy changes used.
215+
*
216+
* @return int
217+
*/
218+
public function getNumberOfStrategyChangeAnnualUsed()
219+
{
220+
return $this->numberOfStrategyChangeAnnualUsed;
221+
}
222+
223+
/**
224+
* @deprecated User should not be able to set values via setters, use
225+
* constructor.
226+
*
227+
* @param int $numberOfStrategyChangeAnnualUsed
228+
*/
229+
public function setNumberOfStrategyChangeAnnualUsed($numberOfStrategyChangeAnnualUsed)
230+
{
231+
$this->numberOfStrategyChangeAnnualUsed = $numberOfStrategyChangeAnnualUsed;
232+
}
233+
234+
/**
235+
* The name associated with the investment portfolio.
236+
*
237+
* @return string
238+
*/
239+
public function getName()
240+
{
241+
return $this->name;
242+
}
243+
244+
/**
245+
* @deprecated User should not be able to set values via setters, use
246+
* constructor.
247+
*
248+
* @param string $name
249+
*/
250+
public function setName($name)
251+
{
252+
$this->name = $name;
253+
}
254+
255+
/**
256+
* The investment goal.
257+
*
258+
* @return BirdeeInvestmentPortfolioGoal
259+
*/
260+
public function getGoal()
261+
{
262+
return $this->goal;
263+
}
264+
265+
/**
266+
* @deprecated User should not be able to set values via setters, use
267+
* constructor.
268+
*
269+
* @param BirdeeInvestmentPortfolioGoal $goal
270+
*/
271+
public function setGoal($goal)
272+
{
273+
$this->goal = $goal;
274+
}
275+
276+
/**
277+
* The investment portfolio balance.
278+
*
279+
* @return BirdeeInvestmentPortfolioBalance
280+
*/
281+
public function getBalance()
282+
{
283+
return $this->balance;
284+
}
285+
286+
/**
287+
* @deprecated User should not be able to set values via setters, use
288+
* constructor.
289+
*
290+
* @param BirdeeInvestmentPortfolioBalance $balance
291+
*/
292+
public function setBalance($balance)
293+
{
294+
$this->balance = $balance;
295+
}
296+
297+
/**
298+
* The allocations of the investment portfolio.
299+
*
300+
* @return BirdeePortfolioAllocation[]
301+
*/
302+
public function getAllocations()
303+
{
304+
return $this->allocations;
305+
}
306+
307+
/**
308+
* @deprecated User should not be able to set values via setters, use
309+
* constructor.
310+
*
311+
* @param BirdeePortfolioAllocation[] $allocations
312+
*/
313+
public function setAllocations($allocations)
314+
{
315+
$this->allocations = $allocations;
316+
}
317+
318+
/**
319+
* @return bool
320+
*/
321+
public function isAllFieldNull()
322+
{
323+
if (!is_null($this->status)) {
324+
return false;
325+
}
326+
327+
if (!is_null($this->riskProfileType)) {
328+
return false;
329+
}
330+
331+
if (!is_null($this->investmentTheme)) {
332+
return false;
333+
}
334+
335+
if (!is_null($this->numberOfStrategyChangeAnnualMaximum)) {
336+
return false;
337+
}
338+
339+
if (!is_null($this->numberOfStrategyChangeAnnualUsed)) {
340+
return false;
341+
}
342+
343+
if (!is_null($this->name)) {
344+
return false;
345+
}
346+
347+
if (!is_null($this->goal)) {
348+
return false;
349+
}
350+
351+
if (!is_null($this->balance)) {
352+
return false;
353+
}
354+
355+
if (!is_null($this->allocations)) {
356+
return false;
357+
}
358+
359+
return true;
360+
}
361+
}

0 commit comments

Comments
 (0)