Client_Initiations

<back to all web services

ConsumerInitiation

Requires Authentication
The following routes are available for this service:
POST/consumerinitiation
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ConsumerInitiation implements IPost
    {
        /**
        * First name of the consumer
        */
        @ApiMember(Description="First name of the consumer", IsRequired=true)
        public String FirstName = null;

        /**
        * Last name of the consumer
        */
        @ApiMember(Description="Last name of the consumer", IsRequired=true)
        public String LastName = null;

        /**
        * Program name
        */
        @ApiMember(Description="Program name", IsRequired=true)
        public String Program = null;

        /**
        * Company name
        */
        @ApiMember(Description="Company name", IsRequired=true)
        public String CompanyName = null;

        /**
        * Mobile phone number
        */
        @ApiMember(Description="Mobile phone number")
        public String MobileNumber = null;

        /**
        * Preferred email address
        */
        @ApiMember(Description="Preferred email address", IsRequired=true)
        public String PreferredEmail = null;

        /**
        * Current work location state
        */
        @ApiMember(Description="Current work location state")
        public String CurrentWorkState = null;

        /**
        * Current work location country
        */
        @ApiMember(Description="Current work location country")
        public String CurrentWorkCountry = null;

        /**
        * Destination work location state
        */
        @ApiMember(Description="Destination work location state")
        public String DestinationWorkState = null;

        /**
        * Destination work location country
        */
        @ApiMember(Description="Destination work location country")
        public String DestinationWorkCountry = null;

        /**
        * Preferred work location state
        */
        @ApiMember(Description="Preferred work location state")
        public String PreferredWorkState = null;

        /**
        * Preferred work location country
        */
        @ApiMember(Description="Preferred work location country")
        public String PreferredWorkCountry = null;
        
        public String getFirstName() { return FirstName; }
        public ConsumerInitiation setFirstName(String value) { this.FirstName = value; return this; }
        public String getLastName() { return LastName; }
        public ConsumerInitiation setLastName(String value) { this.LastName = value; return this; }
        public String getProgram() { return Program; }
        public ConsumerInitiation setProgram(String value) { this.Program = value; return this; }
        public String getCompanyName() { return CompanyName; }
        public ConsumerInitiation setCompanyName(String value) { this.CompanyName = value; return this; }
        public String getMobileNumber() { return MobileNumber; }
        public ConsumerInitiation setMobileNumber(String value) { this.MobileNumber = value; return this; }
        public String getPreferredEmail() { return PreferredEmail; }
        public ConsumerInitiation setPreferredEmail(String value) { this.PreferredEmail = value; return this; }
        public String getCurrentWorkState() { return CurrentWorkState; }
        public ConsumerInitiation setCurrentWorkState(String value) { this.CurrentWorkState = value; return this; }
        public String getCurrentWorkCountry() { return CurrentWorkCountry; }
        public ConsumerInitiation setCurrentWorkCountry(String value) { this.CurrentWorkCountry = value; return this; }
        public String getDestinationWorkState() { return DestinationWorkState; }
        public ConsumerInitiation setDestinationWorkState(String value) { this.DestinationWorkState = value; return this; }
        public String getDestinationWorkCountry() { return DestinationWorkCountry; }
        public ConsumerInitiation setDestinationWorkCountry(String value) { this.DestinationWorkCountry = value; return this; }
        public String getPreferredWorkState() { return PreferredWorkState; }
        public ConsumerInitiation setPreferredWorkState(String value) { this.PreferredWorkState = value; return this; }
        public String getPreferredWorkCountry() { return PreferredWorkCountry; }
        public ConsumerInitiation setPreferredWorkCountry(String value) { this.PreferredWorkCountry = value; return this; }
    }

}

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

POST /consumerinitiation HTTP/1.1 
Host: initiation-test.sirva.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	FirstName: String,
	LastName: String,
	Program: String,
	CompanyName: String,
	MobileNumber: String,
	PreferredEmail: String,
	CurrentWorkState: String,
	CurrentWorkCountry: String,
	DestinationWorkState: String,
	DestinationWorkCountry: String,
	PreferredWorkState: String,
	PreferredWorkCountry: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}