@@ -24,6 +24,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
24
24
'revenue ' => 'float ' ,
25
25
'mean ' => 'float ' ,
26
26
'standardDeviation ' => 'float ' ,
27
+ 'winsorizedAmount ' => 'float ' ,
27
28
];
28
29
29
30
/**
@@ -36,6 +37,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
36
37
'revenue ' => 'double ' ,
37
38
'mean ' => 'double ' ,
38
39
'standardDeviation ' => 'double ' ,
40
+ 'winsorizedAmount ' => 'double ' ,
39
41
];
40
42
41
43
/**
@@ -49,6 +51,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
49
51
'revenue ' => 'revenue ' ,
50
52
'mean ' => 'mean ' ,
51
53
'standardDeviation ' => 'standardDeviation ' ,
54
+ 'winsorizedAmount ' => 'winsorizedAmount ' ,
52
55
];
53
56
54
57
/**
@@ -61,6 +64,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
61
64
'revenue ' => 'setRevenue ' ,
62
65
'mean ' => 'setMean ' ,
63
66
'standardDeviation ' => 'setStandardDeviation ' ,
67
+ 'winsorizedAmount ' => 'setWinsorizedAmount ' ,
64
68
];
65
69
66
70
/**
@@ -73,6 +77,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
73
77
'revenue ' => 'getRevenue ' ,
74
78
'mean ' => 'getMean ' ,
75
79
'standardDeviation ' => 'getStandardDeviation ' ,
80
+ 'winsorizedAmount ' => 'getWinsorizedAmount ' ,
76
81
];
77
82
78
83
/**
@@ -101,6 +106,9 @@ public function __construct(?array $data = null)
101
106
if (isset ($ data ['standardDeviation ' ])) {
102
107
$ this ->container ['standardDeviation ' ] = $ data ['standardDeviation ' ];
103
108
}
109
+ if (isset ($ data ['winsorizedAmount ' ])) {
110
+ $ this ->container ['winsorizedAmount ' ] = $ data ['winsorizedAmount ' ];
111
+ }
104
112
}
105
113
106
114
/**
@@ -271,6 +279,30 @@ public function setStandardDeviation($standardDeviation)
271
279
return $ this ;
272
280
}
273
281
282
+ /**
283
+ * Gets winsorizedAmount.
284
+ *
285
+ * @return null|float
286
+ */
287
+ public function getWinsorizedAmount ()
288
+ {
289
+ return $ this ->container ['winsorizedAmount ' ] ?? null ;
290
+ }
291
+
292
+ /**
293
+ * Sets winsorizedAmount.
294
+ *
295
+ * @param null|float $winsorizedAmount the amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile
296
+ *
297
+ * @return self
298
+ */
299
+ public function setWinsorizedAmount ($ winsorizedAmount )
300
+ {
301
+ $ this ->container ['winsorizedAmount ' ] = $ winsorizedAmount ;
302
+
303
+ return $ this ;
304
+ }
305
+
274
306
/**
275
307
* Returns true if offset exists. False otherwise.
276
308
*
0 commit comments