Skip to content

Commit 4fe2673

Browse files
committed
chore(marketingFeatures): make marketingFeatures optional
1 parent 541b843 commit 4fe2673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/StripeKit/Products/Products/Product.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public struct Product: Codable {
4545
/// A URL of a publicly-accessible webpage for this product.
4646
public var url: String?
4747
/// The marketing feature name. Up to 80 characters long.
48-
public var marketingFeatures: [MarketingFeature]
48+
public var marketingFeatures: [MarketingFeature]?
4949

5050
public init(id: String,
5151
active: Bool? = nil,
@@ -64,7 +64,7 @@ public struct Product: Codable {
6464
unitLabel: String? = nil,
6565
updated: Date? = nil,
6666
url: String? = nil,
67-
marketingFeatures: [MarketingFeature] = []) {
67+
marketingFeatures: [MarketingFeature]? = []) {
6868
self.id = id
6969
self.active = active
7070
self._defaultPrice = Expandable(id: defaultPrice)

0 commit comments

Comments
 (0)