@@ -672,10 +672,15 @@ extension WooAnalyticsEvent {
672672 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
673673 /// - updateType: `.required` or `.optional`.
674674 /// - countryCode: the country code of the store.
675+ /// - cardReaderModel: the model type of the card reader.
675676 ///
676- static func cardReaderSoftwareUpdateTapped( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String ) -> WooAnalyticsEvent {
677+ static func cardReaderSoftwareUpdateTapped( forGatewayID: String ? ,
678+ updateType: SoftwareUpdateTypeProperty ,
679+ countryCode: String ,
680+ cardReaderModel: String ) -> WooAnalyticsEvent {
677681 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateTapped,
678682 properties: [
683+ Keys . cardReaderModel: cardReaderModel,
679684 Keys . countryCode: countryCode,
680685 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
681686 Keys . softwareUpdateType: updateType. rawValue
@@ -689,10 +694,15 @@ extension WooAnalyticsEvent {
689694 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
690695 /// - updateType: `.required` or `.optional`.
691696 /// - countryCode: the country code of the store.
697+ /// - cardReaderModel: the model type of the card reader.
692698 ///
693- static func cardReaderSoftwareUpdateStarted( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String ) -> WooAnalyticsEvent {
699+ static func cardReaderSoftwareUpdateStarted( forGatewayID: String ? ,
700+ updateType: SoftwareUpdateTypeProperty ,
701+ countryCode: String ,
702+ cardReaderModel: String ) -> WooAnalyticsEvent {
694703 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateStarted,
695704 properties: [
705+ Keys . cardReaderModel: cardReaderModel,
696706 Keys . countryCode: countryCode,
697707 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
698708 Keys . softwareUpdateType: updateType. rawValue
@@ -707,12 +717,17 @@ extension WooAnalyticsEvent {
707717 /// - updateType: `.required` or `.optional`.
708718 /// - error: the error to be included in the event properties.
709719 /// - countryCode: the country code of the store.
720+ /// - cardReaderModel: the model type of the card reader.
710721 ///
711- static func cardReaderSoftwareUpdateFailed(
712- forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , error: Error , countryCode: String
722+ static func cardReaderSoftwareUpdateFailed( forGatewayID: String ? ,
723+ updateType: SoftwareUpdateTypeProperty ,
724+ error: Error ,
725+ countryCode: String ,
726+ cardReaderModel: String
713727 ) -> WooAnalyticsEvent {
714728 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateFailed,
715729 properties: [
730+ Keys . cardReaderModel: cardReaderModel,
716731 Keys . countryCode: countryCode,
717732 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
718733 Keys . softwareUpdateType: updateType. rawValue,
@@ -727,10 +742,12 @@ extension WooAnalyticsEvent {
727742 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
728743 /// - updateType: `.required` or `.optional`.
729744 /// - countryCode: the country code of the store.
745+ /// - cardReaderModel: the model type of the card reader.
730746 ///
731- static func cardReaderSoftwareUpdateSuccess( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String ) -> WooAnalyticsEvent {
747+ static func cardReaderSoftwareUpdateSuccess( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String , cardReaderModel : String ) -> WooAnalyticsEvent {
732748 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateSuccess,
733749 properties: [
750+ Keys . cardReaderModel: cardReaderModel,
734751 Keys . countryCode: countryCode,
735752 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
736753 Keys . softwareUpdateType: updateType. rawValue
@@ -744,12 +761,15 @@ extension WooAnalyticsEvent {
744761 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
745762 /// - updateType: `.required` or `.optional`.
746763 /// - countryCode: the country code of the store.
764+ /// - cardReaderModel: the model type of the card reader.
747765 ///
748766 static func cardReaderSoftwareUpdateCancelTapped( forGatewayID: String ? ,
749767 updateType: SoftwareUpdateTypeProperty ,
750- countryCode: String ) -> WooAnalyticsEvent {
768+ countryCode: String ,
769+ cardReaderModel: String ) -> WooAnalyticsEvent {
751770 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateCancelTapped,
752771 properties: [
772+ Keys . cardReaderModel: cardReaderModel,
753773 Keys . countryCode: countryCode,
754774 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
755775 Keys . softwareUpdateType: updateType. rawValue
@@ -763,10 +783,12 @@ extension WooAnalyticsEvent {
763783 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
764784 /// - updateType: `.required` or `.optional`.
765785 /// - countryCode: the country code of the store.
786+ /// - cardReaderModel: the model type of the card reader.
766787 ///
767- static func cardReaderSoftwareUpdateCanceled( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String ) -> WooAnalyticsEvent {
788+ static func cardReaderSoftwareUpdateCanceled( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String , cardReaderModel : String ) -> WooAnalyticsEvent {
768789 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateCanceled,
769790 properties: [
791+ Keys . cardReaderModel: cardReaderModel,
770792 Keys . countryCode: countryCode,
771793 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
772794 Keys . softwareUpdateType: updateType. rawValue
0 commit comments