Home > @vsf-enterprise/sap-commerce-webservices-sdk > ConsentsApi

ConsentsApi class

ConsentsApi - object-oriented interface ConsentsApi {BaseAPI}

Signature:

export declare class ConsentsApi extends BaseAPI 

Extends: BaseAPI

Methods

Method Modifiers Description
doGiveConsent(baseSiteId, consentTemplateId, consentTemplateVersion, userId, options) A user can give consent.
getConsentTemplate(baseSiteId, consentTemplateId, userId, fields, options) If user has not given or withdrawn consent to the template, no given or withdraw date is returned. Fetch the consent.
getConsentTemplates(baseSiteId, userId, fields, options) If user has not given or withdrawn consent to any of the template, no given or withdraw date is returned. Fetch the list of consents
removeConsent(baseSiteId, consentCode, userId, options) If the user consent was given, the consent is withdrawn. If consent was already withdrawn then returns consent already withdrawn error. If there is no such consent then returns not found. If the current user is an anonymous user then returns access denied error. Withdraw the user consent for a given consent code.