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 .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.

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

<CustomerPreferencesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBFSPreferences.ServiceModel">
  <BP_ID>String</BP_ID>
  <Timestamp>String</Timestamp>
  <Token>String</Token>
  <Username>String</Username>
</CustomerPreferencesRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CustomerPreferencesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBFSPreferences.ServiceModel">
  <MarketingPreference>
    <MMF_Portal_Registered>false</MMF_Portal_Registered>
    <OptInEmail>String</OptInEmail>
    <OptInMail>String</OptInMail>
    <OptInSMS>String</OptInSMS>
    <OptInTelephone>String</OptInTelephone>
    <TimeStamp>String</TimeStamp>
  </MarketingPreference>
  <ResponseStatus>
    <Code>String</Code>
    <Message>String</Message>
  </ResponseStatus>
</CustomerPreferencesResponse>