@@ -22,6 +22,9 @@ public class Currency {
2222 @ JsonProperty ("standardDeviation" )
2323 private Double standardDeviation ;
2424
25+ @ JsonProperty ("winsorizedAmount" )
26+ private Double winsorizedAmount ;
27+
2528 public Currency setCurrency (String currency ) {
2629 this .currency = currency ;
2730 return this ;
@@ -66,6 +69,20 @@ public Double getStandardDeviation() {
6669 return standardDeviation ;
6770 }
6871
72+ public Currency setWinsorizedAmount (Double winsorizedAmount ) {
73+ this .winsorizedAmount = winsorizedAmount ;
74+ return this ;
75+ }
76+
77+ /**
78+ * The amount of revenue for this currency that was removed after capping purchase amounts to the
79+ * 95th percentile.
80+ */
81+ @ javax .annotation .Nullable
82+ public Double getWinsorizedAmount () {
83+ return winsorizedAmount ;
84+ }
85+
6986 @ Override
7087 public boolean equals (Object o ) {
7188 if (this == o ) {
@@ -79,13 +96,14 @@ public boolean equals(Object o) {
7996 Objects .equals (this .currency , currency .currency ) &&
8097 Objects .equals (this .revenue , currency .revenue ) &&
8198 Objects .equals (this .mean , currency .mean ) &&
82- Objects .equals (this .standardDeviation , currency .standardDeviation )
99+ Objects .equals (this .standardDeviation , currency .standardDeviation ) &&
100+ Objects .equals (this .winsorizedAmount , currency .winsorizedAmount )
83101 );
84102 }
85103
86104 @ Override
87105 public int hashCode () {
88- return Objects .hash (currency , revenue , mean , standardDeviation );
106+ return Objects .hash (currency , revenue , mean , standardDeviation , winsorizedAmount );
89107 }
90108
91109 @ Override
@@ -96,6 +114,7 @@ public String toString() {
96114 sb .append (" revenue: " ).append (toIndentedString (revenue )).append ("\n " );
97115 sb .append (" mean: " ).append (toIndentedString (mean )).append ("\n " );
98116 sb .append (" standardDeviation: " ).append (toIndentedString (standardDeviation )).append ("\n " );
117+ sb .append (" winsorizedAmount: " ).append (toIndentedString (winsorizedAmount )).append ("\n " );
99118 sb .append ("}" );
100119 return sb .toString ();
101120 }
0 commit comments