Skip to content

Commit

Permalink
invoices: Remove blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycastelli committed Sep 7, 2017
1 parent 40823ff commit e3d96aa
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion Sources/Stripe/API/Routes/InvoiceItemRoutes.swift
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,4 @@ public final class InvoiceItemRoutes {
}
return try StripeRequest(client: self.client, method: .get, route: .invoiceItems, query: query, body: nil, headers: nil)
}

}
2 changes: 0 additions & 2 deletions Sources/Stripe/Models/Invoices/Invoice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -158,5 +157,4 @@ public final class InvoiceList: StripeModelProtocol {
]
return try Node(node: object)
}

}
3 changes: 0 additions & 3 deletions Sources/Stripe/Models/Invoices/InvoiceItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
]
Expand Down
1 change: 0 additions & 1 deletion Sources/Stripe/Models/Invoices/InvoiceLineGroup.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,4 @@ public final class InvoiceLineGroup: StripeModelProtocol {
]
return try Node(node: object)
}

}
1 change: 0 additions & 1 deletion Sources/Stripe/Models/Invoices/InvoiceLineItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,4 @@ public final class InvoiceLineItem: StripeModelProtocol {

return try Node(node: object)
}

}
1 change: 0 additions & 1 deletion Tests/StripeTests/InvoiceItemTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,5 +240,4 @@ class InvoiceItemTests: XCTestCase {
XCTFail(error.localizedDescription)
}
}

}
1 change: 0 additions & 1 deletion Tests/StripeTests/InvoiceTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,5 +309,4 @@ class InvoiceTests: XCTestCase {
XCTFail(error.localizedDescription)
}
}

}

0 comments on commit e3d96aa

Please sign in to comment.