From 55e1dedb63dd78e6c35dbd321637afb6ddb6ac21 Mon Sep 17 00:00:00 2001 From: Thomas Rademaker Date: Wed, 22 Nov 2023 09:15:35 -0500 Subject: [PATCH] refactor name --- .../{InvoiceService.swift => InvoicesService.swift} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename Sources/AlbyKit/Services/{InvoiceService.swift => InvoicesService.swift} (96%) 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