Added package initializers to the Amiibo models for testing.

This commit is contained in:
javier committed 2026-10-25 19:56:05 +01:00
1 parent 51b1245ec3
commit c031fdcc97
10 files changed
+232 -10

No files matched your search

@@ -36,6 +36,19 @@ extension Amiibo {
// MARK: Initializers
/// Initializes this model.
package init(
america: Date? = nil,
australia: Date? = nil,
europe: Date? = nil,
japan: Date? = nil
) {
self.america = america
self.australia = australia
self.europe = europe
self.japan = japan
}
/// Initializes this model from a given payload.
/// - Parameter payload: A payload that contains the values for the model.
init(_ payload: Components.Schemas.AmiiboRelease) {