ggez-banking-sdk
Version:
A Node.js package to handle GGEZ Banking API endpoints, Simplify the process of managing CRUD operations with this efficient and easy-to-use package.
12 lines (11 loc) • 490 B
JavaScript
import { createDefaultUserData } from "./user";
const fillUpdatePreferencesData = (data) => {
const preferences = {
preferred_language_code: data.preferredLanguageCode,
enable_promotion_notification: data.enablePromotionNotification,
enable_sms_notification: data.enableSMSNotification,
enable_push_notification: data.enablePushNotification,
};
return createDefaultUserData({ preferences: preferences });
};
export { fillUpdatePreferencesData };