NotificationConfiguration
public extension NotificationConfiguration
-
Extension function to ensure a [NotificationConfiguration] is initialized for receipt of virtual cards service notifications.
Declaration
Swift
func initVirtualCardsNotifications() -> NotificationConfiguration
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 ID.
Once all notification configurations across all Sudo platform SDKs have been performed, call the
SudoNotificationClient.setNotificationConfiguration
to set the full notification configuration for your application.Declaration
Swift
func setVirtualCardsNotificationsForFundingSource(fundingSourceId: String, enabled: Bool) -> NotificationConfiguration
Parameters
fundingSourceId
ID of funding source to set notification enablement for
enabled
Whether 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.setNotificationConfiguration
to set the full notification configuration for your application.Declaration
Swift
func setVirtualCardsNotificationsForFundingSourceType(fundingSourceType: FundingSourceType, enabled: Bool) -> NotificationConfiguration
Parameters
fundingSourceType
Type of funding source to set notification enablement for
enabled
Whether 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) -> Bool
Parameters
forFundingSourceWithId
ID 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) -> Bool
Parameters
forFundingSourceType
Type of funding source to determine notification enablement status for
Return Value
Whether or not notifications are enabled for the particular funding source type