Skip to content

Commit fc1e246

Browse files
committed
update the initializer
1 parent 01bf0e9 commit fc1e246

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Sources/IndiePitcherSwift/dtos.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,13 +297,17 @@ public struct SendEmailToMailingList: Codable, Sendable {
297297
/// - list: The email will be sent to contacts subscribed to this list. Pass "important" to send the email to all of your contacts.
298298
/// - delaySeconds: Delay sending of this email by the amount of seconds you provide.
299299
/// - delayUntilDate: Delay sending of this email by the amount of seconds you provide.
300-
public init(subject: String, body: String, bodyFormat: EmailBodyFormat, list: String = "important", delaySeconds: TimeInterval? = nil, delayUntilDate: Date? = nil) {
300+
/// - trackEmailOpens: Whether to track email opens. Allow you to overwrite the project's global setting.
301+
/// - trackEmailLinkClicks: Whether to track email opens. Allow you to overwrite the project's global setting.
302+
public init(subject: String, body: String, bodyFormat: EmailBodyFormat, list: String = "important", delaySeconds: TimeInterval? = nil, delayUntilDate: Date? = nil, trackEmailOpens: Bool? = nil, trackEmailLinkClicks: Bool? = nil) {
301303
self.subject = subject
302304
self.body = body
303305
self.bodyFormat = bodyFormat
304306
self.list = list
305307
self.delaySeconds = delaySeconds
306308
self.delayUntilDate = delayUntilDate
309+
self.trackEmailOpens = trackEmailOpens
310+
self.trackEmailLinkClicks = trackEmailLinkClicks
307311
}
308312

309313
/// The subject of the email. Supports personalization.
@@ -331,7 +335,7 @@ public struct SendEmailToMailingList: Codable, Sendable {
331335
var trackEmailOpens: Bool?
332336

333337
/// Whether to track email opens.
334-
///
338+
///
335339
/// Allow you to overwrite the project's global setting.
336340
/// - Default: `nil`- Uses the project's global setting.
337341
var trackEmailLinkClicks: Bool?

0 commit comments

Comments
 (0)