Skip to content

Commit 09e9b48

Browse files
committed
Add copiable to TopEarnerStats
1 parent 57a2aa5 commit 09e9b48

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

Networking/Networking/Model/Copiable/Models+Copiable.generated.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1987,6 +1987,30 @@ extension Networking.SystemPlugin {
19871987
}
19881988
}
19891989

1990+
extension Networking.TopEarnerStats {
1991+
public func copy(
1992+
siteID: CopiableProp<Int64> = .copy,
1993+
date: CopiableProp<String> = .copy,
1994+
granularity: CopiableProp<StatGranularity> = .copy,
1995+
limit: CopiableProp<String> = .copy,
1996+
items: NullableCopiableProp<[TopEarnerStatsItem]> = .copy
1997+
) -> Networking.TopEarnerStats {
1998+
let siteID = siteID ?? self.siteID
1999+
let date = date ?? self.date
2000+
let granularity = granularity ?? self.granularity
2001+
let limit = limit ?? self.limit
2002+
let items = items ?? self.items
2003+
2004+
return Networking.TopEarnerStats(
2005+
siteID: siteID,
2006+
date: date,
2007+
granularity: granularity,
2008+
limit: limit,
2009+
items: items
2010+
)
2011+
}
2012+
}
2013+
19902014
extension Networking.TopEarnerStatsItem {
19912015
public func copy(
19922016
productID: CopiableProp<Int64> = .copy,

Networking/Networking/Model/Stats/TopEarnerStats.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Codegen
33

44
/// Represents Top Earner (aka top performer) stats over a specific period.
55
///
6-
public struct TopEarnerStats: Decodable, GeneratedFakeable {
6+
public struct TopEarnerStats: Decodable, GeneratedFakeable, GeneratedCopiable {
77
public let siteID: Int64
88
public let date: String
99
public let granularity: StatGranularity

0 commit comments

Comments
 (0)