File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ import UIKit
23
23
public var sku : String ?
24
24
25
25
/// description of the product
26
+ /// the class field is named `itemDescription` to avoid iOS namespace (`description`)
26
27
public var itemDescription : String ?
27
28
28
29
/// URL of the product
@@ -54,7 +55,7 @@ import UIKit
54
55
price: NSNumber ,
55
56
quantity: UInt ,
56
57
sku: String ? = nil ,
57
- itemDescription : String ? = nil ,
58
+ description : String ? = nil ,
58
59
url: String ? = nil ,
59
60
imageUrl: String ? = nil ,
60
61
categories: [ String ] ? = nil ) {
@@ -63,7 +64,7 @@ import UIKit
63
64
self . price = price
64
65
self . quantity = quantity
65
66
self . sku = sku
66
- self . itemDescription = itemDescription
67
+ self . itemDescription = description
67
68
self . url = url
68
69
self . imageUrl = imageUrl
69
70
self . categories = categories
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class CommerceItemTests: XCTestCase {
24
24
price: 7.62 ,
25
25
quantity: 9 ,
26
26
sku: " kusanagi " ,
27
- itemDescription : " spider type multi leg/multi ped combat vehicle equipped with AI " ,
27
+ description : " spider type multi leg/multi ped combat vehicle equipped with AI " ,
28
28
url: " stand-alone-complex " ,
29
29
imageUrl: " laughing-man " ,
30
30
categories: [ " section 9 " ,
You can’t perform that action at this time.
0 commit comments