From f153cfe204ef92265d94eb66f2fcf6cf2b0ced13 Mon Sep 17 00:00:00 2001 From: Anthony Castelli Date: Thu, 18 Oct 2018 10:03:54 -0700 Subject: [PATCH] Make Invoice ID's optional. Fixes #80 --- Sources/Stripe/Models/Invoices/Invoice.swift | 2 +- Sources/Stripe/Models/Invoices/InvoiceItem.swift | 2 +- Sources/Stripe/Models/Invoices/InvoiceLineItem.swift | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Stripe/Models/Invoices/Invoice.swift b/Sources/Stripe/Models/Invoices/Invoice.swift index 97698ac..6e497df 100644 --- a/Sources/Stripe/Models/Invoices/Invoice.swift +++ b/Sources/Stripe/Models/Invoices/Invoice.swift @@ -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? diff --git a/Sources/Stripe/Models/Invoices/InvoiceItem.swift b/Sources/Stripe/Models/Invoices/InvoiceItem.swift index bdb23b0..2e3b428 100644 --- a/Sources/Stripe/Models/Invoices/InvoiceItem.swift +++ b/Sources/Stripe/Models/Invoices/InvoiceItem.swift @@ -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? diff --git a/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift b/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift index 59cb478..fed56b8 100644 --- a/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift +++ b/Sources/Stripe/Models/Invoices/InvoiceLineItem.swift @@ -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?