We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 541b843 commit 4fe2673Copy full SHA for 4fe2673
Sources/StripeKit/Products/Products/Product.swift
@@ -45,7 +45,7 @@ public struct Product: Codable {
45
/// A URL of a publicly-accessible webpage for this product.
46
public var url: String?
47
/// The marketing feature name. Up to 80 characters long.
48
- public var marketingFeatures: [MarketingFeature]
+ public var marketingFeatures: [MarketingFeature]?
49
50
public init(id: String,
51
active: Bool? = nil,
@@ -64,7 +64,7 @@ public struct Product: Codable {
64
unitLabel: String? = nil,
65
updated: Date? = nil,
66
url: String? = nil,
67
- marketingFeatures: [MarketingFeature] = []) {
+ marketingFeatures: [MarketingFeature]? = []) {
68
self.id = id
69
self.active = active
70
self._defaultPrice = Expandable(id: defaultPrice)
0 commit comments