@plasma-platform/tm-service-loyalty

    1.1.14 • Public • Published

    Documentation

    Table of Contents

    LoyaltyProgramService

    Loyalty Program Micro Service API SDK

    Parameters

    • url string service url
    • token (string | null) user access token if available (optional, default null)

    getLevels

    Get Loyalty Levels

    Examples

    To use
    (async () => {
      const LoyaltyProgramService = new LoyaltyProgramService(url, token);
      const list = await LoyaltyProgramService.getLevels();
    })();

    Returns Array array of loyalty levels

    getLevelsById

    Get Loyalty Level by id

    Parameters

    Examples

    To use
    (async () => {
      const LoyaltyProgramService = new LoyaltyProgramService(url, token);
      const list = await LoyaltyProgramService.getLevelsById(id);
    })();

    Returns object object of loyalty level

    getUserProfile

    Get Loyalty Levels

    Examples

    To use
    (async () => {
      const LoyaltyProgramService = new LoyaltyProgramService(url, token);
      const list = await LoyaltyProgramService.getUserProfile();
    })();

    Returns Object object of user profile

    Install

    npm i @plasma-platform/tm-service-loyalty

    DownloadsWeekly Downloads

    8

    Version

    1.1.14

    License

    CC-BY-4.0

    Unpacked Size

    1.57 MB

    Total Files

    35

    Last publish

    Collaborators

    • soulwish
    • tmrdowner
    • ch-tm
    • viram
    • kyrylovoronoi