| PATCH | /customer/{boosterCustomerId}/updateConsents | Update customer consents | Update customer consents |
|---|
"use strict";
export class UpdateConsents {
/** @param {{boosterCustomerId?:number,contactByEmailFlag?:boolean,contactByMailFlag?:boolean,contactByPhoneFlag?:boolean,contactBySMSFlag?:boolean,contactBySocialMediaFlag?:boolean,privacyAcceptance?:boolean,allowStoreDataAbroad?:boolean}} [init] */
constructor(init) { Object.assign(this, init) }
/**
* @type {number}
* @description Booster customer Id */
boosterCustomerId;
/**
* @type {boolean}
* @description Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not. */
contactByEmailFlag;
/**
* @type {boolean}
* @description Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not. */
contactByMailFlag;
/**
* @type {boolean}
* @description Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not. */
contactByPhoneFlag;
/**
* @type {boolean}
* @description Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not. */
contactBySMSFlag;
/**
* @type {boolean}
* @description Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not. */
contactBySocialMediaFlag;
/**
* @type {boolean}
* @description Provide 'true' if you want to be contacted at all. Leave empty or 'false' if you do not - if chosen false, all contactBy* will be set to false also */
privacyAcceptance;
/**
* @type {?boolean}
* @description Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not. */
allowStoreDataAbroad;
}
JavaScript UpdateConsents DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PATCH /customer/{boosterCustomerId}/updateConsents HTTP/1.1
Host: dev-api-booster.richemont.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"boosterCustomerId":0,"contactByEmailFlag":false,"contactByMailFlag":false,"contactByPhoneFlag":false,"contactBySMSFlag":false,"contactBySocialMediaFlag":false,"privacyAcceptance":false,"allowStoreDataAbroad":false}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{}