Skip to content

Commit f650988

Browse files
committed
Fix periphery issues
1 parent 9b4df55 commit f650988

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

Modules/Sources/Networking/Model/Bookings/Booking.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ public struct Booking: Codable, GeneratedCopiable, Equatable, GeneratedFakeable
2222
public let statusKey: String
2323
public let localTimezone: String
2424

25-
/// Computed Properties
26-
///
25+
// periphery: ignore - to be used later
2726
public var bookingStatus: BookingStatus {
2827
return BookingStatus(rawValue: statusKey) ?? .unknown
2928
}
@@ -172,8 +171,8 @@ enum BookingDecodingError: Error {
172171
// MARK: - Supporting Types
173172
//
174173

174+
// periphery: ignore
175175
/// Represents a Booking Status.
176-
///
177176
public enum BookingStatus: String, CaseIterable {
178177
case complete
179178
case paid

Modules/Sources/Storage/Tools/StorageType+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,8 @@ public extension StorageType {
951951
return allObjects(ofType: Booking.self, matching: predicate, sortedBy: [descriptor])
952952
}
953953

954+
// periphery: ignore
954955
/// Retrieves the Stored Booking.
955-
///
956956
func loadBooking(siteID: Int64, bookingID: Int64) -> Booking? {
957957
let predicate = \Booking.bookingID == bookingID && \Booking.siteID == siteID
958958
return firstObject(ofType: Booking.self, matching: predicate)

Modules/Sources/Yosemite/Actions/BookingAction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import Foundation
22
import Networking
33

4+
// periphery: ignore
45
/// BookingAction: Defines all of the Actions supported by the BookingStore.
56
///
67
public enum BookingAction: Action {

Modules/Sources/Yosemite/Model/Model.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ public typealias StorageBlazeCampaignListItem = Storage.BlazeCampaignListItem
266266
public typealias StorageBlazeTargetDevice = Storage.BlazeTargetDevice
267267
public typealias StorageBlazeTargetLanguage = Storage.BlazeTargetLanguage
268268
public typealias StorageBlazeTargetTopic = Storage.BlazeTargetTopic
269+
// periphery: ignore
269270
public typealias StorageBooking = Storage.Booking
270271
public typealias StorageCardReaderType = Storage.CardReaderType
271272
public typealias StorageCoupon = Storage.Coupon

WooCommerce/Classes/Yosemite/AuthenticatedState.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ class AuthenticatedState: StoresManagerState {
126126
StoreOnboardingTasksStore(dispatcher: dispatcher, storageManager: storageManager, network: network),
127127
GoogleAdsStore(dispatcher: dispatcher, storageManager: storageManager, network: network),
128128
MetaDataStore(dispatcher: dispatcher, storageManager: storageManager, network: network),
129-
WooShippingStore(dispatcher: dispatcher, storageManager: storageManager, network: network)
129+
WooShippingStore(dispatcher: dispatcher, storageManager: storageManager, network: network),
130+
BookingStore(dispatcher: dispatcher, storageManager: storageManager, network: network)
130131
]
131132

132133

0 commit comments

Comments
 (0)