NotificationConfiguration
public extension NotificationConfiguration
-
Extension function to ensure a [NotificationConfiguration] is initialized for receipt of virtual cards service notifications.
Declaration
Swift
func initVirtualCardsNotifications() -> NotificationConfigurationReturn Value
New NotificationConfiguration with updated rules
-
Extension function to add rules to a [NotificationConfiguration] for enabling or disabling notifications for a particular funding source ID.
Once all notification configurations across all Sudo platform SDKs have been performed, call the
SudoNotificationClient.setNotificationConfigurationto set the full notification configuration for your application.Declaration
Swift
func setVirtualCardsNotificationsForFundingSource(fundingSourceId: String, enabled: Bool) -> NotificationConfigurationParameters
fundingSourceIdID of funding source to set notification enablement for
enabledWhether or not notifications are to be enabled or disabled for the funding source with the specified ID.
Return Value
New NotificationConfiguration with updated rules
-
Extension function to add rules to a [NotificationConfiguration] for enabling or disabling notifications for a particular funding source type.
Once all notification configurations across all Sudo platform SDKs have been performed, call the
SudoNotificationClient.setNotificationConfigurationto set the full notification configuration for your application.Declaration
Swift
func setVirtualCardsNotificationsForFundingSourceType(fundingSourceType: FundingSourceType, enabled: Bool) -> NotificationConfigurationParameters
fundingSourceTypeType of funding source to set notification enablement for
enabledWhether or not notifications are to be enabled or disabled for the funding source with the specified ID.
Return Value
New NotificationConfiguration with updated rules
-
Determine whether or not notifications for a particular funding source are enabled
Declaration
Swift
func areNotificationsEnabled(forFundingSourceWithId fundingSourceId: String) -> BoolParameters
forFundingSourceWithIdID of funding source to determine notification enablement status for
Return Value
Whether or not notifications are enabled for the particular funding source with given iD
-
Determine whether or not notifications for a particular funding source type are enabled
Declaration
Swift
func areNotificationsEnabled(forFundingSourceType fundingSourceType: FundingSourceType) -> BoolParameters
forFundingSourceTypeType of funding source to determine notification enablement status for
Return Value
Whether or not notifications are enabled for the particular funding source type
NotificationConfiguration Extension Reference