@@ -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,15 @@ 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 ? ,
748+ updateType: SoftwareUpdateTypeProperty ,
749+ countryCode: String ,
750+ cardReaderModel: String ) -> WooAnalyticsEvent {
732751 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateSuccess,
733752 properties: [
753+ Keys . cardReaderModel: cardReaderModel,
734754 Keys . countryCode: countryCode,
735755 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
736756 Keys . softwareUpdateType: updateType. rawValue
@@ -744,12 +764,15 @@ extension WooAnalyticsEvent {
744764 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
745765 /// - updateType: `.required` or `.optional`.
746766 /// - countryCode: the country code of the store.
767+ /// - cardReaderModel: the model type of the card reader.
747768 ///
748769 static func cardReaderSoftwareUpdateCancelTapped( forGatewayID: String ? ,
749770 updateType: SoftwareUpdateTypeProperty ,
750- countryCode: String ) -> WooAnalyticsEvent {
771+ countryCode: String ,
772+ cardReaderModel: String ) -> WooAnalyticsEvent {
751773 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateCancelTapped,
752774 properties: [
775+ Keys . cardReaderModel: cardReaderModel,
753776 Keys . countryCode: countryCode,
754777 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
755778 Keys . softwareUpdateType: updateType. rawValue
@@ -763,10 +786,15 @@ extension WooAnalyticsEvent {
763786 /// - forGatewayID: the plugin (e.g. "woocommerce-payments" or "woocommerce-gateway-stripe") to be included in the event properties in Tracks.
764787 /// - updateType: `.required` or `.optional`.
765788 /// - countryCode: the country code of the store.
789+ /// - cardReaderModel: the model type of the card reader.
766790 ///
767- static func cardReaderSoftwareUpdateCanceled( forGatewayID: String ? , updateType: SoftwareUpdateTypeProperty , countryCode: String ) -> WooAnalyticsEvent {
791+ static func cardReaderSoftwareUpdateCanceled( forGatewayID: String ? ,
792+ updateType: SoftwareUpdateTypeProperty ,
793+ countryCode: String ,
794+ cardReaderModel: String ) -> WooAnalyticsEvent {
768795 WooAnalyticsEvent ( statName: . cardReaderSoftwareUpdateCanceled,
769796 properties: [
797+ Keys . cardReaderModel: cardReaderModel,
770798 Keys . countryCode: countryCode,
771799 Keys . gatewayID: gatewayID ( forGatewayID: forGatewayID) ,
772800 Keys . softwareUpdateType: updateType. rawValue
0 commit comments