diff --git a/Sources/Stripe/API/Routes/InvoiceItemRoutes.swift b/Sources/Stripe/API/Routes/InvoiceItemRoutes.swift index 7abeaee..5c84cbd 100644 --- a/Sources/Stripe/API/Routes/InvoiceItemRoutes.swift +++ b/Sources/Stripe/API/Routes/InvoiceItemRoutes.swift @@ -162,5 +162,4 @@ public final class InvoiceItemRoutes { } return try StripeRequest(client: self.client, method: .get, route: .invoiceItems, query: query, body: nil, headers: nil) } - } diff --git a/Sources/Stripe/Models/Invoices/Invoice.swift b/Sources/Stripe/Models/Invoices/Invoice.swift index 8e199d4..2bb49c0 100644 --- a/Sources/Stripe/Models/Invoices/Invoice.swift +++ b/Sources/Stripe/Models/Invoices/Invoice.swift @@ -95,7 +95,6 @@ public final class Invoice: StripeModelProtocol { if let lines = node["lines"]?.object, let data = lines["data"]?.array { self.lines = try data.map({ try InvoiceLineItem(node: $0) }) } - } public func makeNode(in context: Context?) throws -> Node { @@ -158,5 +157,4 @@ public final class InvoiceList: StripeModelProtocol { ] return try Node(node: object) } - } diff --git a/Sources/Stripe/Models/Invoices/InvoiceItem.swift b/Sources/Stripe/Models/Invoices/InvoiceItem.swift index a482266..1f61821 100644 --- a/Sources/Stripe/Models/Invoices/InvoiceItem.swift +++ b/Sources/Stripe/Models/Invoices/InvoiceItem.swift @@ -74,14 +74,11 @@ public final class InvoiceItem: StripeModelProtocol { "proration": self.isProration, "quantity": self.quantity, "subscription": self.subscription, - "period": [ "start": self.periodStart, "end": self.periodEnd ], - "metadata": self.metadata, - "plan": self.plan, "currency": self.currency?.rawValue ] diff --git a/Sources/Stripe/Models/Invoices/InvoiceLineGroup.swift b/Sources/Stripe/Models/Invoices/InvoiceLineGroup.swift index 20f44a5..ae93fde 100644 --- a/Sources/Stripe/Models/Invoices/InvoiceLineGroup.swift +++ b/Sources/Stripe/Models/Invoices/InvoiceLineGroup.swift @@ -29,5 +29,4 @@ public final class InvoiceLineGroup: StripeModelProtocol { ] return try Node(node: object) } - } diff --git a/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift b/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift index af7610d..933b044 100644 --- a/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift +++ b/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift @@ -79,5 +79,4 @@ public final class InvoiceLineItem: StripeModelProtocol { return try Node(node: object) } - } diff --git a/Tests/StripeTests/InvoiceItemTests.swift b/Tests/StripeTests/InvoiceItemTests.swift index ddcf614..b78edc0 100644 --- a/Tests/StripeTests/InvoiceItemTests.swift +++ b/Tests/StripeTests/InvoiceItemTests.swift @@ -240,5 +240,4 @@ class InvoiceItemTests: XCTestCase { XCTFail(error.localizedDescription) } } - } diff --git a/Tests/StripeTests/InvoiceTests.swift b/Tests/StripeTests/InvoiceTests.swift index f54717d..7b076fd 100644 --- a/Tests/StripeTests/InvoiceTests.swift +++ b/Tests/StripeTests/InvoiceTests.swift @@ -309,5 +309,4 @@ class InvoiceTests: XCTestCase { XCTFail(error.localizedDescription) } } - }