NAV

<back to all web services

ProfileSignUpCreate

The following routes are available for this service:
POST/profile/sign-up
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ProfileSignUpCreate implements IPost
    {
        public String firstName = null;
        public String lastName = null;
        public String emailAddress = null;
        public String customerType = null;
        public String cultureName = null;
        public NAVPhoneUpdate phone = null;
        public NAVCASLTermsUpdate caslStatementAgreement = null;
        
        public String getFirstName() { return firstName; }
        public ProfileSignUpCreate setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public ProfileSignUpCreate setLastName(String value) { this.lastName = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public ProfileSignUpCreate setEmailAddress(String value) { this.emailAddress = value; return this; }
        public String getCustomerType() { return customerType; }
        public ProfileSignUpCreate setCustomerType(String value) { this.customerType = value; return this; }
        public String getCultureName() { return cultureName; }
        public ProfileSignUpCreate setCultureName(String value) { this.cultureName = value; return this; }
        public NAVPhoneUpdate getPhone() { return phone; }
        public ProfileSignUpCreate setPhone(NAVPhoneUpdate value) { this.phone = value; return this; }
        public NAVCASLTermsUpdate getCaslStatementAgreement() { return caslStatementAgreement; }
        public ProfileSignUpCreate setCaslStatementAgreement(NAVCASLTermsUpdate value) { this.caslStatementAgreement = value; return this; }
    }

    public static class NAVPhoneUpdate
    {
        public String number = null;
        public String extension = null;
        public String codeIdPhoneType = null;
        public String countryCode = null;
        
        public String getNumber() { return number; }
        public NAVPhoneUpdate setNumber(String value) { this.number = value; return this; }
        public String getExtension() { return extension; }
        public NAVPhoneUpdate setExtension(String value) { this.extension = value; return this; }
        public String getCodeIdPhoneType() { return codeIdPhoneType; }
        public NAVPhoneUpdate setCodeIdPhoneType(String value) { this.codeIdPhoneType = value; return this; }
        public String getCountryCode() { return countryCode; }
        public NAVPhoneUpdate setCountryCode(String value) { this.countryCode = value; return this; }
    }

    public static class NAVCASLTermsUpdate
    {
        public String agree = null;
        public Date date = null;
        
        public String getAgree() { return agree; }
        public NAVCASLTermsUpdate setAgree(String value) { this.agree = value; return this; }
        public Date getDate() { return date; }
        public NAVCASLTermsUpdate setDate(Date value) { this.date = value; return this; }
    }

    public static class ProfileSignUpCreateResponse
    {
        public ResponseStatus responseStatus = null;
        public BigDecimal beeNumber = null;
        public String accessToken = null;
        public Date timestamp = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public ProfileSignUpCreateResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public BigDecimal getBeeNumber() { return beeNumber; }
        public ProfileSignUpCreateResponse setBeeNumber(BigDecimal value) { this.beeNumber = value; return this; }
        public String getAccessToken() { return accessToken; }
        public ProfileSignUpCreateResponse setAccessToken(String value) { this.accessToken = value; return this; }
        public Date getTimestamp() { return timestamp; }
        public ProfileSignUpCreateResponse setTimestamp(Date value) { this.timestamp = value; return this; }
    }

}

Java ProfileSignUpCreate 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 /profile/sign-up HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ProfileSignUpCreate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <CASLStatementAgreement>
    <Agree>String</Agree>
    <Date>0001-01-01T00:00:00</Date>
  </CASLStatementAgreement>
  <CultureName>String</CultureName>
  <CustomerType>String</CustomerType>
  <EmailAddress>String</EmailAddress>
  <FirstName>String</FirstName>
  <LastName>String</LastName>
  <Phone>
    <CodeIdPhoneType>String</CodeIdPhoneType>
    <CountryCode>String</CountryCode>
    <Extension>String</Extension>
    <Number>String</Number>
  </Phone>
</ProfileSignUpCreate>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ProfileSignUpCreateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <AccessToken>String</AccessToken>
  <BeeNumber>0</BeeNumber>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Timestamp>0001-01-01T00:00:00</Timestamp>
</ProfileSignUpCreateResponse>