File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Sources/StripeKit/Products/Products Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,8 @@ public struct Product: Codable {
44
44
public var updated : Date ?
45
45
/// A URL of a publicly-accessible webpage for this product.
46
46
public var url : String ?
47
+ /// The marketing feature name. Up to 80 characters long.
48
+ public var marketingFeatures : [ MarketingFeature ] ?
47
49
48
50
public init ( id: String ,
49
51
active: Bool ? = nil ,
@@ -61,7 +63,8 @@ public struct Product: Codable {
61
63
taxCode: String ? = nil ,
62
64
unitLabel: String ? = nil ,
63
65
updated: Date ? = nil ,
64
- url: String ? = nil ) {
66
+ url: String ? = nil ,
67
+ marketingFeatures: [ MarketingFeature ] ? = [ ] ) {
65
68
self . id = id
66
69
self . active = active
67
70
self . _defaultPrice = Expandable ( id: defaultPrice)
@@ -79,6 +82,15 @@ public struct Product: Codable {
79
82
self . unitLabel = unitLabel
80
83
self . updated = updated
81
84
self . url = url
85
+ self . marketingFeatures = marketingFeatures
86
+ }
87
+ }
88
+
89
+ public struct MarketingFeature : Codable {
90
+ public var name : String ?
91
+
92
+ public init ( name: String ? = nil ) {
93
+ self . name = name
82
94
}
83
95
}
84
96
You can’t perform that action at this time.
0 commit comments