Skip to content

Commit bcce835

Browse files
algolia-botcdhawke
andcommitted
feat(specs): abtesting winsorizedAmount (#5053) (generated) [skip ci]
Co-authored-by: Christopher Hawke <[email protected]>
1 parent 791a0c0 commit bcce835

File tree

13 files changed

+179
-11
lines changed

13 files changed

+179
-11
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Abtesting/Currency.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,13 @@ public Currency() { }
4949
[JsonPropertyName("standardDeviation")]
5050
public double? StandardDeviation { get; set; }
5151

52+
/// <summary>
53+
/// The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
54+
/// </summary>
55+
/// <value>The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.</value>
56+
[JsonPropertyName("winsorizedAmount")]
57+
public double? WinsorizedAmount { get; set; }
58+
5259
/// <summary>
5360
/// Returns the string presentation of the object
5461
/// </summary>
@@ -61,6 +68,7 @@ public override string ToString()
6168
sb.Append(" Revenue: ").Append(Revenue).Append("\n");
6269
sb.Append(" Mean: ").Append(Mean).Append("\n");
6370
sb.Append(" StandardDeviation: ").Append(StandardDeviation).Append("\n");
71+
sb.Append(" WinsorizedAmount: ").Append(WinsorizedAmount).Append("\n");
6472
sb.Append("}\n");
6573
return sb.ToString();
6674
}
@@ -95,6 +103,10 @@ public override bool Equals(object obj)
95103
&& (
96104
StandardDeviation == input.StandardDeviation
97105
|| StandardDeviation.Equals(input.StandardDeviation)
106+
)
107+
&& (
108+
WinsorizedAmount == input.WinsorizedAmount
109+
|| WinsorizedAmount.Equals(input.WinsorizedAmount)
98110
);
99111
}
100112

@@ -114,6 +126,7 @@ public override int GetHashCode()
114126
hashCode = (hashCode * 59) + Revenue.GetHashCode();
115127
hashCode = (hashCode * 59) + Mean.GetHashCode();
116128
hashCode = (hashCode * 59) + StandardDeviation.GetHashCode();
129+
hashCode = (hashCode * 59) + WinsorizedAmount.GetHashCode();
117130
return hashCode;
118131
}
119132
}

clients/algoliasearch-client-go/algolia/abtesting/model_currency.go

Lines changed: 45 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/abtesting/Currency.java

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

clients/algoliasearch-client-javascript/packages/client-abtesting/model/currency.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ export type Currency = {
2020
* Standard deviation for this currency.
2121
*/
2222
standardDeviation?: number | undefined;
23+
24+
/**
25+
* The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
26+
*/
27+
winsorizedAmount?: number | undefined;
2328
};

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/abtesting/Currency.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import kotlinx.serialization.json.*
1111
* @param revenue Revenue for this currency.
1212
* @param mean Mean for this currency.
1313
* @param standardDeviation Standard deviation for this currency.
14+
* @param winsorizedAmount The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
1415
*/
1516
@Serializable
1617
public data class Currency(
@@ -26,4 +27,7 @@ public data class Currency(
2627

2728
/** Standard deviation for this currency. */
2829
@SerialName(value = "standardDeviation") val standardDeviation: Double? = null,
30+
31+
/** The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile. */
32+
@SerialName(value = "winsorizedAmount") val winsorizedAmount: Double? = null,
2933
)

clients/algoliasearch-client-php/lib/Model/Abtesting/Currency.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
2424
'revenue' => 'float',
2525
'mean' => 'float',
2626
'standardDeviation' => 'float',
27+
'winsorizedAmount' => 'float',
2728
];
2829

2930
/**
@@ -36,6 +37,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
3637
'revenue' => 'double',
3738
'mean' => 'double',
3839
'standardDeviation' => 'double',
40+
'winsorizedAmount' => 'double',
3941
];
4042

4143
/**
@@ -49,6 +51,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
4951
'revenue' => 'revenue',
5052
'mean' => 'mean',
5153
'standardDeviation' => 'standardDeviation',
54+
'winsorizedAmount' => 'winsorizedAmount',
5255
];
5356

5457
/**
@@ -61,6 +64,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
6164
'revenue' => 'setRevenue',
6265
'mean' => 'setMean',
6366
'standardDeviation' => 'setStandardDeviation',
67+
'winsorizedAmount' => 'setWinsorizedAmount',
6468
];
6569

6670
/**
@@ -73,6 +77,7 @@ class Currency extends AbstractModel implements ModelInterface, \ArrayAccess, \J
7377
'revenue' => 'getRevenue',
7478
'mean' => 'getMean',
7579
'standardDeviation' => 'getStandardDeviation',
80+
'winsorizedAmount' => 'getWinsorizedAmount',
7681
];
7782

7883
/**
@@ -101,6 +106,9 @@ public function __construct(?array $data = null)
101106
if (isset($data['standardDeviation'])) {
102107
$this->container['standardDeviation'] = $data['standardDeviation'];
103108
}
109+
if (isset($data['winsorizedAmount'])) {
110+
$this->container['winsorizedAmount'] = $data['winsorizedAmount'];
111+
}
104112
}
105113

106114
/**
@@ -271,6 +279,30 @@ public function setStandardDeviation($standardDeviation)
271279
return $this;
272280
}
273281

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+
274306
/**
275307
* Returns true if offset exists. False otherwise.
276308
*

clients/algoliasearch-client-python/algoliasearch/abtesting/models/currency.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"revenue": "revenue",
2424
"mean": "mean",
2525
"standard_deviation": "standardDeviation",
26+
"winsorized_amount": "winsorizedAmount",
2627
}
2728

2829

@@ -43,6 +44,8 @@ class Currency(BaseModel):
4344
""" Mean for this currency. """
4445
standard_deviation: Optional[float] = None
4546
""" Standard deviation for this currency. """
47+
winsorized_amount: Optional[float] = None
48+
""" The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile. """
4649

4750
model_config = ConfigDict(
4851
strict=False,

clients/algoliasearch-client-ruby/lib/algolia/models/abtesting/currency.rb

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,17 @@ class Currency
2020
# Standard deviation for this currency.
2121
attr_accessor :standard_deviation
2222

23+
# The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
24+
attr_accessor :winsorized_amount
25+
2326
# Attribute mapping from ruby-style variable name to JSON key.
2427
def self.attribute_map
2528
{
2629
:currency => :currency,
2730
:revenue => :revenue,
2831
:mean => :mean,
29-
:standard_deviation => :standardDeviation
32+
:standard_deviation => :standardDeviation,
33+
:winsorized_amount => :winsorizedAmount
3034
}
3135
end
3236

@@ -36,7 +40,8 @@ def self.types_mapping
3640
:currency => :"String",
3741
:revenue => :"Float",
3842
:mean => :"Float",
39-
:standard_deviation => :"Float"
43+
:standard_deviation => :"Float",
44+
:winsorized_amount => :"Float"
4045
}
4146
end
4247

@@ -82,6 +87,10 @@ def initialize(attributes = {})
8287
if attributes.key?(:standard_deviation)
8388
self.standard_deviation = attributes[:standard_deviation]
8489
end
90+
91+
if attributes.key?(:winsorized_amount)
92+
self.winsorized_amount = attributes[:winsorized_amount]
93+
end
8594
end
8695

8796
# Checks equality by comparing each attribute.
@@ -92,7 +101,8 @@ def ==(other)
92101
currency == other.currency &&
93102
revenue == other.revenue &&
94103
mean == other.mean &&
95-
standard_deviation == other.standard_deviation
104+
standard_deviation == other.standard_deviation &&
105+
winsorized_amount == other.winsorized_amount
96106
end
97107

98108
# @see the `==` method
@@ -104,7 +114,7 @@ def eql?(other)
104114
# Calculates hash code according to all attributes.
105115
# @return [Integer] Hash code
106116
def hash
107-
[currency, revenue, mean, standard_deviation].hash
117+
[currency, revenue, mean, standard_deviation, winsorized_amount].hash
108118
end
109119

110120
# Builds the object from hash

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/abtesting/Currency.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@ package algoliasearch.abtesting
3434
* Mean for this currency.
3535
* @param standardDeviation
3636
* Standard deviation for this currency.
37+
* @param winsorizedAmount
38+
* The amount of revenue for this currency that was removed after capping purchase amounts to the 95th percentile.
3739
*/
3840
case class Currency(
3941
currency: Option[String] = scala.None,
4042
revenue: Option[Double] = scala.None,
4143
mean: Option[Double] = scala.None,
42-
standardDeviation: Option[Double] = scala.None
44+
standardDeviation: Option[Double] = scala.None,
45+
winsorizedAmount: Option[Double] = scala.None
4346
)

0 commit comments

Comments
 (0)