Skip to content

Commit db14843

Browse files
committed
Make DTOs Sendable
1 parent bcf3d22 commit db14843

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

Diff for: Sources/FluentWallet/DTOs/LogEntriesDTO.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// An object that contains an array of messages.
22
///
33
/// See: [`LogEntries`](https://developer.apple.com/documentation/walletpasses/logentries)
4-
public struct LogEntriesDTO: Codable {
4+
public struct LogEntriesDTO: Codable, Sendable {
55
/// An array of log messages.
66
public let logs: [String]
77

Diff for: Sources/FluentWallet/DTOs/PushTokenDTO.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// An object that contains the push notification token for a registered pass on a device.
22
///
33
/// See: [`PushToken`](https://developer.apple.com/documentation/walletpasses/pushtoken)
4-
public struct PushTokenDTO: Codable {
4+
public struct PushTokenDTO: Codable, Sendable {
55
/// A push token the server uses to send update notifications for a registered pass to a device.
66
public let pushToken: String
77

Diff for: Sources/FluentWalletOrders/DTOs/OrderIdentifiersDTO.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import struct Foundation.Date
33
/// The unique identifiers associated with orders.
44
///
55
/// See: [`OrderIdentifiers`](https://developer.apple.com/documentation/walletorders/orderidentifiers)
6-
public struct OrderIdentifiersDTO: Codable {
6+
public struct OrderIdentifiersDTO: Codable, Sendable {
77
/// An array of order identifer strings.
88
public let orderIdentifiers: [String]
99

Diff for: Sources/FluentWalletPasses/DTOs/PersonalizationDictionaryDTO.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/// An object that contains the information you use to personalize a pass.
22
///
33
/// See: [`PersonalizationDictionary`](https://developer.apple.com/documentation/walletpasses/personalizationdictionary)
4-
public struct PersonalizationDictionaryDTO: Codable {
4+
public struct PersonalizationDictionaryDTO: Codable, Sendable {
55
/// The personalization token for this request. The server must sign and return the token.
66
public let personalizationToken: String
77

@@ -19,7 +19,7 @@ public struct PersonalizationDictionaryDTO: Codable {
1919
/// An object that contains the user-entered information for a personalized pass.
2020
///
2121
/// See: [`RequiredPersonalizationInfo`](https://developer.apple.com/documentation/walletpasses/personalizationdictionary/requiredpersonalizationinfo-data.dictionary)
22-
public struct RequiredPersonalizationInfo: Codable {
22+
public struct RequiredPersonalizationInfo: Codable, Sendable {
2323
/// The user-entered email address for the user of the personalized pass.
2424
public let emailAddress: String?
2525

Diff for: Sources/FluentWalletPasses/DTOs/SerialNumbersDTO.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import struct Foundation.Date
33
/// An object that contains serial numbers for the updatable passes on a device.
44
///
55
/// See: [`SerialNumbers`](https://developer.apple.com/documentation/walletpasses/serialnumbers)
6-
public struct SerialNumbersDTO: Codable {
6+
public struct SerialNumbersDTO: Codable, Sendable {
77
/// A developer-defined string that contains a tag that indicates the modification time for the returned passes.
88
public let lastUpdated: String
99

0 commit comments

Comments
 (0)