diff --git a/Sources/AlbyKit/Services/InvoiceService.swift b/Sources/AlbyKit/Services/InvoicesService.swift similarity index 96% rename from Sources/AlbyKit/Services/InvoiceService.swift rename to Sources/AlbyKit/Services/InvoicesService.swift index 8d1be50..5f869f5 100644 --- a/Sources/AlbyKit/Services/InvoiceService.swift +++ b/Sources/AlbyKit/Services/InvoicesService.swift @@ -1,7 +1,7 @@ import Foundation -public struct InvoiceService { - private let router = NetworkRouter(decoder: .albyDecoder) +public struct InvoicesService { + private let router = NetworkRouter(decoder: .albyDecoder) /// Create an invoice /// Scope needed: invoices:create @@ -52,7 +52,7 @@ public struct InvoiceService { } } -enum InvoiceAPI { +enum InvoicesAPI { case createInvoice(InvoiceUploadModel) case incomingInvoiceHistory(InvoiceHistoryUploadModel) case outgoingInvoiceHistory(InvoiceHistoryUploadModel) @@ -61,7 +61,7 @@ enum InvoiceAPI { case decodeBolt11(String) } -extension InvoiceAPI: EndpointType { +extension InvoicesAPI: EndpointType { public var baseURL: URL { guard let url = URL(string: prodAPI) else { fatalError("baseURL not configured.") } return url