Skip to content

Commit b5f8f22

Browse files
algolia-botkai687
andcommitted
fix(specs): value/price clarifications in the Insights API (generated)
algolia/api-clients-automation#5154 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Kai Welke <[email protected]>
1 parent cc71424 commit b5f8f22

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Sources/Insights/Models/InsightsValue.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Total monetary value of this event in units of `currency`.
9+
/// Total monetary value of this event in units of `currency`. This should be equal to the sum of `price` times
10+
/// `quantity`.
1011
public enum InsightsValue: Codable, JSONEncodable, AbstractEncodable {
1112
case double(Double)
1213
case string(String)

Sources/Insights/Models/Price.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9-
/// Total price of a product, including any discounts, in units of `currency`.
9+
/// Final price of a single product, including any discounts, in units of `currency`.
1010
public enum Price: Codable, JSONEncodable, AbstractEncodable {
1111
case double(Double)
1212
case string(String)

0 commit comments

Comments
 (0)