get

abstract suspend fun get(categories: List<String>? = null): CommunicationPreferences

Retrieves the customer's communication preferences.

Categories are returned already sorted for display, and a parent category always appears before its children. When categories is provided, a matched child category may be returned without its parent. If no categories match the filter an empty list is returned; if categories is omitted the full list is returned.

Return

A CommunicationPreferences object.

Parameters

categories

An optional list of category codes to filter the response.