Skip to content

Commit

Permalink
Ecommerce implementation (matomo-org#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yury Krainik committed Aug 8, 2018
1 parent 9b89bcb commit 4a5861d
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions MatomoTracker/EcommerceItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,19 @@
import Foundation

public struct EcommerceItem {
let sku: String
let name: String?
let category: String?
let price: Double
let quantity: Double
let formatter: NumberFormatter
public let sku: String
public let name: String?
public var category: String?
public var price: Double
public var quantity: Double
public var formatter: NumberFormatter

public init(sku: String, price: Double, quantity: Double, formatter: NumberFormatter) {
self.sku = sku
self.price = price
self.quantity = quantity
self.formatter = formatter
}

public func jsonObject() -> Any {

Expand Down

0 comments on commit 4a5861d

Please sign in to comment.