Richemont.Booster2.PublicApi

<back to all web services

UpdateConsents

Requires Authentication
The following routes are available for this service:
PATCH/customer/{boosterCustomerId}/updateConsentsUpdate customer consentsUpdate customer consents
namespace Richemont.Booster2.PublicApi.CRM.ServiceModel

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type UpdateConsents() = 
        ///<summary>
        ///Booster customer Id
        ///</summary>
        [<ApiMember(Description="Booster customer Id")>]
        member val boosterCustomerId:Int32 = new Int32() with get,set

        ///<summary>
        ///Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not.
        ///</summary>
        [<ApiMember(Description="Provide 'true' if you want to be contacted by email. Leave empty or 'false' if you do not.")>]
        member val contactByEmailFlag:Boolean = new Boolean() with get,set

        ///<summary>
        ///Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not.
        ///</summary>
        [<ApiMember(Description="Provide 'true' if you want to be contacted by mail. Leave empty or 'false' if you do not.")>]
        member val contactByMailFlag:Boolean = new Boolean() with get,set

        ///<summary>
        ///Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not.
        ///</summary>
        [<ApiMember(Description="Provide 'true' if you want to be contacted by phone. Leave empty or 'false' if you do not.")>]
        member val contactByPhoneFlag:Boolean = new Boolean() with get,set

        ///<summary>
        ///Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not.
        ///</summary>
        [<ApiMember(Description="Provide 'true' if you want to be contacted by SMS. Leave empty or 'false' if you do not.")>]
        member val contactBySMSFlag:Boolean = new Boolean() with get,set

        ///<summary>
        ///Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not.
        ///</summary>
        [<ApiMember(Description="Provide 'true' if you want to be contacted by social media. Leave empty or 'false' if you do not.")>]
        member val contactBySocialMediaFlag:Boolean = new Boolean() with get,set

        ///<summary>
        ///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
        ///</summary>
        [<ApiMember(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")>]
        member val privacyAcceptance:Boolean = new Boolean() with get,set

        ///<summary>
        ///Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not.
        ///</summary>
        [<ApiMember(Description="Provide 'true' if you allow your data to be stored abroad. Leave empty or 'false' if you do not.")>]
        member val allowStoreDataAbroad:Nullable<Boolean> = new Nullable<Boolean>() with get,set

F# UpdateConsents DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

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: application/xml
Content-Type: application/xml
Content-Length: length

<UpdateConsents xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Richemont.Booster2.PublicApi.CRM.ServiceModel">
  <allowStoreDataAbroad>false</allowStoreDataAbroad>
  <boosterCustomerId>0</boosterCustomerId>
  <contactByEmailFlag>false</contactByEmailFlag>
  <contactByMailFlag>false</contactByMailFlag>
  <contactByPhoneFlag>false</contactByPhoneFlag>
  <contactBySMSFlag>false</contactBySMSFlag>
  <contactBySocialMediaFlag>false</contactBySocialMediaFlag>
  <privacyAcceptance>false</privacyAcceptance>
</UpdateConsents>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />