From 58ea4f4ad77f86aad54da22d1d86f610c50712ac Mon Sep 17 00:00:00 2001 From: Szymon Date: Sat, 28 Jan 2023 23:05:50 +1000 Subject: [PATCH] fix public init (#156) --- Sources/StripeKit/Checkout/SessionRoutes.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/StripeKit/Checkout/SessionRoutes.swift b/Sources/StripeKit/Checkout/SessionRoutes.swift index d83dfb95..34e81a8e 100644 --- a/Sources/StripeKit/Checkout/SessionRoutes.swift +++ b/Sources/StripeKit/Checkout/SessionRoutes.swift @@ -52,7 +52,7 @@ public protocol SessionRoutes { locale: StripeSessionLocale?, metadata: [String: String]?, mode: StripeSessionMode?, - invoiceCreation: StripeInvoiceCreation?, + invoiceCreation: Bool?, paymentIntentData: [String: Any]?, paymentMethodOptions: [String: Any]?, phoneNumberCollection: Bool?, @@ -108,7 +108,7 @@ extension SessionRoutes { locale: StripeSessionLocale? = nil, metadata: [String: String]? = nil, mode: StripeSessionMode? = nil, - invoiceCreation: StripeInvoiceCreation? = nil, + invoiceCreation: Bool? = nil, paymentIntentData: [String: Any]? = nil, paymentMethodOptions: [String: Any]? = nil, phoneNumberCollection: Bool? = nil, @@ -187,7 +187,7 @@ public struct StripeSessionRoutes: SessionRoutes { locale: StripeSessionLocale?, metadata: [String: String]?, mode: StripeSessionMode?, - invoiceCreation: StripeInvoiceCreation?, + invoiceCreation: Bool?, paymentIntentData: [String: Any]?, paymentMethodOptions: [String: Any]?, phoneNumberCollection: Bool?, @@ -247,7 +247,7 @@ public struct StripeSessionRoutes: SessionRoutes { } if let invoiceCreation = invoiceCreation { - body["invoice_creation"] = invoiceCreation + body["invoice_creation"] = StripeInvoiceCreation(enabled: invoiceCreation) } if let paymentIntentData = paymentIntentData {