@@ -24,7 +24,7 @@ struct PointOfSaleDefaultCouponFetchStrategy: PointOfSaleCouponFetchStrategy {
2424 self . couponStoreMethods = couponStoreMethods
2525 }
2626
27- public func fetchCoupons( pageNumber: Int ) async throws -> PagedItems < POSItem > {
27+ func fetchCoupons( pageNumber: Int ) async throws -> PagedItems < POSItem > {
2828 // Update local storage with data from the remote
2929 let hasMorePages = try await syncCouponsFromRemote ( pageNumber: pageNumber)
3030 // Return all local coupons, including updated ones from the remote
@@ -35,7 +35,7 @@ struct PointOfSaleDefaultCouponFetchStrategy: PointOfSaleCouponFetchStrategy {
3535 /// fetchLocalCoupons provides an array of coupons that are stored locally
3636 /// It does not accept any sort of pagination
3737 /// Limited to default page size to match remote results
38- public func fetchLocalCoupons( ) async throws -> [ POSItem ] {
38+ func fetchLocalCoupons( ) async throws -> [ POSItem ] {
3939 return await fetchLocalCoupons ( limit: Constants . defaultPageSize)
4040 }
4141}
@@ -66,7 +66,7 @@ extension PointOfSaleDefaultCouponFetchStrategy {
6666
6767// MARK: - Search Coupon Strategy
6868
69- public struct PointOfSaleSearchCouponFetchStrategy : PointOfSaleCouponFetchStrategy {
69+ struct PointOfSaleSearchCouponFetchStrategy : PointOfSaleCouponFetchStrategy {
7070 private let siteID : Int64
7171 private let couponStoreMethods : CouponStoreMethodsProtocol
7272 private let storage : StorageManagerType
@@ -89,7 +89,7 @@ public struct PointOfSaleSearchCouponFetchStrategy: PointOfSaleCouponFetchStrate
8989 self . analytics = analytics
9090 }
9191
92- public func fetchCoupons( pageNumber: Int ) async throws -> PagedItems < POSItem > {
92+ func fetchCoupons( pageNumber: Int ) async throws -> PagedItems < POSItem > {
9393 let startTime = Date ( )
9494 try await couponStoreMethods. searchCoupons ( siteID: siteID,
9595 keyword: searchTerm,
@@ -116,7 +116,7 @@ public struct PointOfSaleSearchCouponFetchStrategy: PointOfSaleCouponFetchStrate
116116 return resultsController. fetchCoupons ( predicate: predicate)
117117 }
118118
119- public func fetchLocalCoupons( ) async throws -> [ POSItem ] {
119+ func fetchLocalCoupons( ) async throws -> [ POSItem ] {
120120 // No support for returning local search results
121121 return [ ]
122122 }
0 commit comments