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
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Richemont.Booster2.PublicApi.CRM.ServiceModel

Namespace Global

    Namespace Richemont.Booster2.PublicApi.CRM.ServiceModel

        Public Partial Class UpdateConsents
            '''<Summary>
            '''Booster customer Id
            '''</Summary>
            <ApiMember(Description:="Booster customer Id")>
            Public Overridable Property boosterCustomerId As Integer

            '''<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.")>
            Public Overridable Property contactByEmailFlag As Boolean

            '''<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.")>
            Public Overridable Property contactByMailFlag As Boolean

            '''<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.")>
            Public Overridable Property contactByPhoneFlag As Boolean

            '''<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.")>
            Public Overridable Property contactBySMSFlag As Boolean

            '''<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.")>
            Public Overridable Property contactBySocialMediaFlag As Boolean

            '''<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")>
            Public Overridable Property privacyAcceptance As Boolean

            '''<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.")>
            Public Overridable Property allowStoreDataAbroad As Nullable(Of Boolean)
        End Class
    End Namespace
End Namespace

VB.NET UpdateConsents DTOs

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

HTTP + JSV

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/jsv
Content-Type: text/jsv
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/jsv
Content-Length: length

{
	
}