MBFSPreferences

<back to all web services

CustomerPreferencesRequest

The following routes are available for this service:
All Verbs/CustomerPreferences/
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class CustomerPreferencesRequest
    {
        public String BP_ID = null;
        public String Username = null;
        public String Token = null;
        public String Timestamp = null;
        
        public String getBpId() { return BP_ID; }
        public CustomerPreferencesRequest setBpId(String value) { this.BP_ID = value; return this; }
        public String getUsername() { return Username; }
        public CustomerPreferencesRequest setUsername(String value) { this.Username = value; return this; }
        public String getToken() { return Token; }
        public CustomerPreferencesRequest setToken(String value) { this.Token = value; return this; }
        public String getTimestamp() { return Timestamp; }
        public CustomerPreferencesRequest setTimestamp(String value) { this.Timestamp = value; return this; }
    }

    public static class CustomerPreferencesResponse
    {
        public Response ResponseStatus = null;
        public MarketingPreference MarketingPreference = null;
        
        public Response getResponseStatus() { return ResponseStatus; }
        public CustomerPreferencesResponse setResponseStatus(Response value) { this.ResponseStatus = value; return this; }
        public MarketingPreference getMarketingPreference() { return MarketingPreference; }
        public CustomerPreferencesResponse setMarketingPreference(MarketingPreference value) { this.MarketingPreference = value; return this; }
    }

    public static class Response
    {
        public String Code = null;
        public String Message = null;
        
        public String getCode() { return Code; }
        public Response setCode(String value) { this.Code = value; return this; }
        public String getMessage() { return Message; }
        public Response setMessage(String value) { this.Message = value; return this; }
    }

    public static class MarketingPreference
    {
        public String OptInMail = null;
        public String OptInTelephone = null;
        public String OptInEmail = null;
        public String OptInSMS = null;
        public String TimeStamp = null;
        public Boolean MMF_Portal_Registered = null;
        
        public String getOptInMail() { return OptInMail; }
        public MarketingPreference setOptInMail(String value) { this.OptInMail = value; return this; }
        public String getOptInTelephone() { return OptInTelephone; }
        public MarketingPreference setOptInTelephone(String value) { this.OptInTelephone = value; return this; }
        public String getOptInEmail() { return OptInEmail; }
        public MarketingPreference setOptInEmail(String value) { this.OptInEmail = value; return this; }
        public String getOptInSMS() { return OptInSMS; }
        public MarketingPreference setOptInSMS(String value) { this.OptInSMS = value; return this; }
        public String getTimeStamp() { return TimeStamp; }
        public MarketingPreference setTimeStamp(String value) { this.TimeStamp = value; return this; }
        public Boolean isMmfPortalRegistered() { return MMF_Portal_Registered; }
        public MarketingPreference setMmfPortalRegistered(Boolean value) { this.MMF_Portal_Registered = value; return this; }
    }

}

Java CustomerPreferencesRequest DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /CustomerPreferences/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"BP_ID":"String","Username":"String","Token":"String","Timestamp":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"Code":"String","Message":"String"},"MarketingPreference":{"OptInMail":"String","OptInTelephone":"String","OptInEmail":"String","OptInSMS":"String","TimeStamp":"String","MMF_Portal_Registered":false}}