Skip to content

Commit

Permalink
Make Invoice ID's optional. Fixes #80
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycastelli committed Oct 18, 2018
1 parent d224569 commit f153cfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/Stripe/Models/Invoices/Invoice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Foundation
*/

public struct StripeInvoice: StripeModel {
public var id: String
public var id: String?
public var object: String
public var amountDue: Int?
public var applicationFee: Int?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Stripe/Models/Invoices/InvoiceItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Foundation
*/

public struct StripeInvoiceItem: StripeModel {
public var id: String
public var id: String?
public var object: String
public var amount: Int?
public var currency: StripeCurrency?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Stripe/Models/Invoices/InvoiceLineItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import Foundation
*/

public struct StripeInvoiceLineItem: StripeModel {
public var id: String
public var id: String?
public var object: String
public var amount: Int?
public var currency: StripeCurrency?
Expand Down

0 comments on commit f153cfe

Please sign in to comment.