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

ConsentsApiFactory variable

ConsentsApi - factory interface

Signature:

ConsentsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
    doGiveConsent(baseSiteId: string, consentTemplateId: string, consentTemplateVersion: number, userId: string, options?: any): AxiosPromise<ConsentTemplate>;
    getConsentTemplate(baseSiteId: string, consentTemplateId: string, userId: string, fields?: string, options?: any): AxiosPromise<ConsentTemplate>;
    getConsentTemplates(baseSiteId: string, userId: string, fields?: string, options?: any): AxiosPromise<ConsentTemplateList>;
    removeConsent(baseSiteId: string, consentCode: string, userId: string, options?: any): AxiosPromise<void>;
}