Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Commit

Permalink
refactor name
Browse files Browse the repository at this point in the history
radmakr committed Nov 22, 2023
1 parent e14d8dd commit 55e1ded
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Foundation

public struct InvoiceService {
private let router = NetworkRouter<InvoiceAPI>(decoder: .albyDecoder)
public struct InvoicesService {
private let router = NetworkRouter<InvoicesAPI>(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

0 comments on commit 55e1ded

Please sign in to comment.