@@ -612,7 +612,10 @@ extension WooAnalyticsEvent {
612612 /// - countryCode: the country code of the store.
613613 /// - cardReaderModel: the model type of the card reader.
614614 ///
615- static func cardReaderConnectionSuccess( forGatewayID: String ? , batteryLevel: Float ? , countryCode: String , cardReaderModel: String ) -> WooAnalyticsEvent {
615+ static func cardReaderConnectionSuccess( forGatewayID: String ? ,
616+ batteryLevel: Float ? ,
617+ countryCode: String ,
618+ cardReaderModel: String ) -> WooAnalyticsEvent {
616619 var properties = [
617620 Keys . cardReaderModel: cardReaderModel,
618621 Keys . countryCode: countryCode,
@@ -632,10 +635,12 @@ extension WooAnalyticsEvent {
632635 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
633636 /// - error: the error to be included in the event properties.
634637 /// - countryCode: the country code of the store.
638+ /// - cardReaderModel: the model type of the card reader.
635639 ///
636- static func cardReaderConnectionFailed( forGatewayID: String ? , error: Error , countryCode: String ) -> WooAnalyticsEvent {
640+ static func cardReaderConnectionFailed( forGatewayID: String ? , error: Error , countryCode: String , cardReaderModel : String ) -> WooAnalyticsEvent {
637641 WooAnalyticsEvent ( statName: . cardReaderConnectionFailed,
638642 properties: [
643+ Keys . cardReaderModel: cardReaderModel,
639644 Keys . countryCode: countryCode,
640645 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
641646 Keys . errorDescription: error. localizedDescription
@@ -649,10 +654,12 @@ extension WooAnalyticsEvent {
649654 /// - Parameters:
650655 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
651656 /// - countryCode: the country code of the store.
657+ /// - cardReaderModel: the model type of the card reader.
652658 ///
653- static func cardReaderDisconnectTapped( forGatewayID: String ? , countryCode: String ) -> WooAnalyticsEvent {
659+ static func cardReaderDisconnectTapped( forGatewayID: String ? , countryCode: String , cardReaderModel : String ) -> WooAnalyticsEvent {
654660 WooAnalyticsEvent ( statName: . cardReaderDisconnectTapped,
655661 properties: [
662+ Keys . cardReaderModel: cardReaderModel,
656663 Keys . countryCode: countryCode,
657664 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID)
658665 ]
0 commit comments