Skip to content

Commit

Permalink
[NF] Make Apple and Freshdesk properties public
Browse files Browse the repository at this point in the history
This facilitates mocking in parent repositories
  • Loading branch information
drewag committed Aug 7, 2019
1 parent 8707e4f commit b9ec8c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
8 changes: 8 additions & 0 deletions Sources/DecreeServices/AppleAppStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ extension Apple.AppStore {

public struct Output: Decodable {
public let receipt: Receipt

public init(receipt: Receipt) {
self.receipt = receipt
}
}

public init() {}
Expand Down Expand Up @@ -102,6 +106,10 @@ extension Apple.AppStore {
}

public let inApp: [InApp]

public init(inApp: [InApp]) {
self.inApp = inApp
}
}
}

Expand Down
18 changes: 9 additions & 9 deletions Sources/DecreeServices/FreshDesk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,15 +92,15 @@ extension FreshDesk {
case urgent
}

let type: Kind?
let source: Source
let status: Status
let priority: Priority
let name: String?
let email: String
let subject: String
let description: String
let attachments: [File]?
public let type: Kind?
public let source: Source
public let status: Status
public let priority: Priority
public let name: String?
public let email: String
public let subject: String
public let description: String
public let attachments: [File]?

/// Initialize a new tickekt
///
Expand Down

0 comments on commit b9ec8c6

Please sign in to comment.