Skip to content

Commit

Permalink
Make initializers public
Browse files Browse the repository at this point in the history
  • Loading branch information
mikwat committed Dec 22, 2023
1 parent 078dab5 commit 002cb3d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Sources/MailerLiteAPIClient/Models/Group.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public struct Group: Codable {
public let junkCount: Int?
public let createdAt: String?

init(
public init(
id: String,
name: String? = nil,
activeCount: Int? = nil,
Expand Down
2 changes: 1 addition & 1 deletion Sources/MailerLiteAPIClient/Models/Other.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public struct Rate: Codable {
public let float64: Double?
public let string: String?

init(float64: Double? = nil, string: String? = nil) {
public init(float64: Double? = nil, string: String? = nil) {
self.float64 = float64
self.string = string
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/MailerLiteAPIClient/Models/Subscriber.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct Subscriber: Codable {
public let state: String?
public let zip: String?

init(
public init(
city: String? = nil,
company: String? = nil,
country: String? = nil,
Expand Down
2 changes: 1 addition & 1 deletion Sources/MailerLiteAPIClient/Requests/ListSubscribers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public struct ListSubscribers: APIRequest {
public let limit: Int?
public let cursor: String?

init(filter: String? = nil, limit: Int? = nil, cursor: String? = nil) {
public init(filter: String? = nil, limit: Int? = nil, cursor: String? = nil) {
self.filter = filter
self.limit = limit
self.cursor = cursor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct UpdateSubscriber: APIRequest {
public let optinIp: String?
public let unsubscribedAt: String?

init(
public init(
id: String,
fields: Subscriber.Fields? = nil,
groups: [String]? = nil,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public struct UpsertSubscriber: APIRequest {
public let optinIp: String?
public let unsubscribedAt: String?

init(
public init(
email: String? = nil,
fields: Subscriber.Fields? = nil,
groups: [String]? = nil,
Expand Down

0 comments on commit 002cb3d

Please sign in to comment.