NAV

<back to all web services

ProfileUpdate

The following routes are available for this service:
PUT/profile/{BeeNumber}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ProfileUpdate implements IPut
    {
        public BigDecimal beeNumber = null;
        public String firstName = null;
        public String lastName = null;
        public String nickname = null;
        public Date birthDate = null;
        public NAVAddressUpdate billingAddress = null;
        public NAVAddressUpdate shippingAddress = null;
        public String governmentId = null;
        public String emailAddress = null;
        public NAVPhoneUpdate primaryPhone = null;
        public NAVPhoneUpdate additionalPhone = null;
        public String onlineStoreAddress = null;
        public String language = null;
        public String publicityPermission = null;
        public Boolean findMeOnline = null;
        public String oldPassword = null;
        public String newPassword = null;
        public String passwordHint = null;
        public NAVBankAccountUpdate bankAccount = null;
        public NAVTermsUpdate termsAgreement = null;
        public NAVTermsUpdate electronicAgreement = null;
        public String agentId = null;
        public String taxExemptCode = null;
        public String customerType = null;
        public Date customerTypeEffectiveDate = null;
        public BigDecimal repAttachmentNumber = null;
        public String repRelationship = null;
        public String preferredDeliveryMethod = null;
        public String noCode21 = null;
        public String noCode30 = null;
        public NAVTermsUpdate privacyPolicyAgreement = null;
        public NAVTermsUpdate websiteTermsOfUseAgreement = null;
        public NAVTermsUpdate ageVerificationAgreement = null;
        public NAVCASLTermsUpdate caslStatementAgreement = null;
        
        public BigDecimal getBeeNumber() { return beeNumber; }
        public ProfileUpdate setBeeNumber(BigDecimal value) { this.beeNumber = value; return this; }
        public String getFirstName() { return firstName; }
        public ProfileUpdate setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public ProfileUpdate setLastName(String value) { this.lastName = value; return this; }
        public String getNickname() { return nickname; }
        public ProfileUpdate setNickname(String value) { this.nickname = value; return this; }
        public Date getBirthDate() { return birthDate; }
        public ProfileUpdate setBirthDate(Date value) { this.birthDate = value; return this; }
        public NAVAddressUpdate getBillingAddress() { return billingAddress; }
        public ProfileUpdate setBillingAddress(NAVAddressUpdate value) { this.billingAddress = value; return this; }
        public NAVAddressUpdate getShippingAddress() { return shippingAddress; }
        public ProfileUpdate setShippingAddress(NAVAddressUpdate value) { this.shippingAddress = value; return this; }
        public String getGovernmentId() { return governmentId; }
        public ProfileUpdate setGovernmentId(String value) { this.governmentId = value; return this; }
        public String getEmailAddress() { return emailAddress; }
        public ProfileUpdate setEmailAddress(String value) { this.emailAddress = value; return this; }
        public NAVPhoneUpdate getPrimaryPhone() { return primaryPhone; }
        public ProfileUpdate setPrimaryPhone(NAVPhoneUpdate value) { this.primaryPhone = value; return this; }
        public NAVPhoneUpdate getAdditionalPhone() { return additionalPhone; }
        public ProfileUpdate setAdditionalPhone(NAVPhoneUpdate value) { this.additionalPhone = value; return this; }
        public String getOnlineStoreAddress() { return onlineStoreAddress; }
        public ProfileUpdate setOnlineStoreAddress(String value) { this.onlineStoreAddress = value; return this; }
        public String getLanguage() { return language; }
        public ProfileUpdate setLanguage(String value) { this.language = value; return this; }
        public String getPublicityPermission() { return publicityPermission; }
        public ProfileUpdate setPublicityPermission(String value) { this.publicityPermission = value; return this; }
        public Boolean isFindMeOnline() { return findMeOnline; }
        public ProfileUpdate setFindMeOnline(Boolean value) { this.findMeOnline = value; return this; }
        public String getOldPassword() { return oldPassword; }
        public ProfileUpdate setOldPassword(String value) { this.oldPassword = value; return this; }
        public String getNewPassword() { return newPassword; }
        public ProfileUpdate setNewPassword(String value) { this.newPassword = value; return this; }
        public String getPasswordHint() { return passwordHint; }
        public ProfileUpdate setPasswordHint(String value) { this.passwordHint = value; return this; }
        public NAVBankAccountUpdate getBankAccount() { return bankAccount; }
        public ProfileUpdate setBankAccount(NAVBankAccountUpdate value) { this.bankAccount = value; return this; }
        public NAVTermsUpdate getTermsAgreement() { return termsAgreement; }
        public ProfileUpdate setTermsAgreement(NAVTermsUpdate value) { this.termsAgreement = value; return this; }
        public NAVTermsUpdate getElectronicAgreement() { return electronicAgreement; }
        public ProfileUpdate setElectronicAgreement(NAVTermsUpdate value) { this.electronicAgreement = value; return this; }
        public String getAgentId() { return agentId; }
        public ProfileUpdate setAgentId(String value) { this.agentId = value; return this; }
        public String getTaxExemptCode() { return taxExemptCode; }
        public ProfileUpdate setTaxExemptCode(String value) { this.taxExemptCode = value; return this; }
        public String getCustomerType() { return customerType; }
        public ProfileUpdate setCustomerType(String value) { this.customerType = value; return this; }
        public Date getCustomerTypeEffectiveDate() { return customerTypeEffectiveDate; }
        public ProfileUpdate setCustomerTypeEffectiveDate(Date value) { this.customerTypeEffectiveDate = value; return this; }
        public BigDecimal getRepAttachmentNumber() { return repAttachmentNumber; }
        public ProfileUpdate setRepAttachmentNumber(BigDecimal value) { this.repAttachmentNumber = value; return this; }
        public String getRepRelationship() { return repRelationship; }
        public ProfileUpdate setRepRelationship(String value) { this.repRelationship = value; return this; }
        public String getPreferredDeliveryMethod() { return preferredDeliveryMethod; }
        public ProfileUpdate setPreferredDeliveryMethod(String value) { this.preferredDeliveryMethod = value; return this; }
        public String getNoCode21() { return noCode21; }
        public ProfileUpdate setNoCode21(String value) { this.noCode21 = value; return this; }
        public String getNoCode30() { return noCode30; }
        public ProfileUpdate setNoCode30(String value) { this.noCode30 = value; return this; }
        public NAVTermsUpdate getPrivacyPolicyAgreement() { return privacyPolicyAgreement; }
        public ProfileUpdate setPrivacyPolicyAgreement(NAVTermsUpdate value) { this.privacyPolicyAgreement = value; return this; }
        public NAVTermsUpdate getWebsiteTermsOfUseAgreement() { return websiteTermsOfUseAgreement; }
        public ProfileUpdate setWebsiteTermsOfUseAgreement(NAVTermsUpdate value) { this.websiteTermsOfUseAgreement = value; return this; }
        public NAVTermsUpdate getAgeVerificationAgreement() { return ageVerificationAgreement; }
        public ProfileUpdate setAgeVerificationAgreement(NAVTermsUpdate value) { this.ageVerificationAgreement = value; return this; }
        public NAVCASLTermsUpdate getCaslStatementAgreement() { return caslStatementAgreement; }
        public ProfileUpdate setCaslStatementAgreement(NAVCASLTermsUpdate value) { this.caslStatementAgreement = value; return this; }
    }

    public static class NAVAddressUpdate
    {
        public String firstName = null;
        public String lastName = null;
        public String addressLine1 = null;
        public String addressLine2 = null;
        public String addressLine3 = null;
        public String addressLine4 = null;
        public String addressLine5 = null;
        public String city = null;
        public String stateCode = null;
        public String postalCode = null;
        public String countryCode = null;
        
        public String getFirstName() { return firstName; }
        public NAVAddressUpdate setFirstName(String value) { this.firstName = value; return this; }
        public String getLastName() { return lastName; }
        public NAVAddressUpdate setLastName(String value) { this.lastName = value; return this; }
        public String getAddressLine1() { return addressLine1; }
        public NAVAddressUpdate setAddressLine1(String value) { this.addressLine1 = value; return this; }
        public String getAddressLine2() { return addressLine2; }
        public NAVAddressUpdate setAddressLine2(String value) { this.addressLine2 = value; return this; }
        public String getAddressLine3() { return addressLine3; }
        public NAVAddressUpdate setAddressLine3(String value) { this.addressLine3 = value; return this; }
        public String getAddressLine4() { return addressLine4; }
        public NAVAddressUpdate setAddressLine4(String value) { this.addressLine4 = value; return this; }
        public String getAddressLine5() { return addressLine5; }
        public NAVAddressUpdate setAddressLine5(String value) { this.addressLine5 = value; return this; }
        public String getCity() { return city; }
        public NAVAddressUpdate setCity(String value) { this.city = value; return this; }
        public String getStateCode() { return stateCode; }
        public NAVAddressUpdate setStateCode(String value) { this.stateCode = value; return this; }
        public String getPostalCode() { return postalCode; }
        public NAVAddressUpdate setPostalCode(String value) { this.postalCode = value; return this; }
        public String getCountryCode() { return countryCode; }
        public NAVAddressUpdate setCountryCode(String value) { this.countryCode = 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 NAVBankAccountUpdate
    {
        public String accountName = null;
        public String bankName = null;
        public String accountNumber = null;
        public String routingNumber = null;
        
        public String getAccountName() { return accountName; }
        public NAVBankAccountUpdate setAccountName(String value) { this.accountName = value; return this; }
        public String getBankName() { return bankName; }
        public NAVBankAccountUpdate setBankName(String value) { this.bankName = value; return this; }
        public String getAccountNumber() { return accountNumber; }
        public NAVBankAccountUpdate setAccountNumber(String value) { this.accountNumber = value; return this; }
        public String getRoutingNumber() { return routingNumber; }
        public NAVBankAccountUpdate setRoutingNumber(String value) { this.routingNumber = value; return this; }
    }

    public static class NAVTermsUpdate
    {
        public String version = null;
        public Date date = null;
        
        public String getVersion() { return version; }
        public NAVTermsUpdate setVersion(String value) { this.version = value; return this; }
        public Date getDate() { return date; }
        public NAVTermsUpdate setDate(Date value) { this.date = 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 ProfileUpdateResponse
    {
        public ResponseStatus responseStatus = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public ProfileUpdateResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
    }

}

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

PUT /profile/{BeeNumber} HTTP/1.1 
Host: extensions.avon.ca 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ProfileUpdate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <AdditionalPhone>
    <CodeIdPhoneType>String</CodeIdPhoneType>
    <CountryCode>String</CountryCode>
    <Extension>String</Extension>
    <Number>String</Number>
  </AdditionalPhone>
  <AgeVerificationAgreement>
    <Date>0001-01-01T00:00:00</Date>
    <Version>String</Version>
  </AgeVerificationAgreement>
  <AgentId>String</AgentId>
  <BankAccount>
    <AccountName>String</AccountName>
    <AccountNumber>String</AccountNumber>
    <BankName>String</BankName>
    <RoutingNumber>String</RoutingNumber>
  </BankAccount>
  <BeeNumber>0</BeeNumber>
  <BillingAddress>
    <AddressLine1>String</AddressLine1>
    <AddressLine2>String</AddressLine2>
    <AddressLine3>String</AddressLine3>
    <AddressLine4>String</AddressLine4>
    <AddressLine5>String</AddressLine5>
    <City>String</City>
    <CountryCode>String</CountryCode>
    <FirstName>String</FirstName>
    <LastName>String</LastName>
    <PostalCode>String</PostalCode>
    <StateCode>String</StateCode>
  </BillingAddress>
  <BirthDate>0001-01-01T00:00:00</BirthDate>
  <CASLStatementAgreement>
    <Agree>String</Agree>
    <Date>0001-01-01T00:00:00</Date>
  </CASLStatementAgreement>
  <CustomerType>String</CustomerType>
  <CustomerTypeEffectiveDate>0001-01-01T00:00:00</CustomerTypeEffectiveDate>
  <ElectronicAgreement>
    <Date>0001-01-01T00:00:00</Date>
    <Version>String</Version>
  </ElectronicAgreement>
  <EmailAddress>String</EmailAddress>
  <FindMeOnline>false</FindMeOnline>
  <FirstName>String</FirstName>
  <GovernmentId>String</GovernmentId>
  <Language>String</Language>
  <LastName>String</LastName>
  <NewPassword>String</NewPassword>
  <Nickname>String</Nickname>
  <NoCode21>String</NoCode21>
  <NoCode30>String</NoCode30>
  <OldPassword>String</OldPassword>
  <OnlineStoreAddress>String</OnlineStoreAddress>
  <PasswordHint>String</PasswordHint>
  <PreferredDeliveryMethod>String</PreferredDeliveryMethod>
  <PrimaryPhone>
    <CodeIdPhoneType>String</CodeIdPhoneType>
    <CountryCode>String</CountryCode>
    <Extension>String</Extension>
    <Number>String</Number>
  </PrimaryPhone>
  <PrivacyPolicyAgreement>
    <Date>0001-01-01T00:00:00</Date>
    <Version>String</Version>
  </PrivacyPolicyAgreement>
  <PublicityPermission>String</PublicityPermission>
  <RepAttachmentNumber>0</RepAttachmentNumber>
  <RepRelationship>String</RepRelationship>
  <ShippingAddress>
    <AddressLine1>String</AddressLine1>
    <AddressLine2>String</AddressLine2>
    <AddressLine3>String</AddressLine3>
    <AddressLine4>String</AddressLine4>
    <AddressLine5>String</AddressLine5>
    <City>String</City>
    <CountryCode>String</CountryCode>
    <FirstName>String</FirstName>
    <LastName>String</LastName>
    <PostalCode>String</PostalCode>
    <StateCode>String</StateCode>
  </ShippingAddress>
  <TaxExemptCode>String</TaxExemptCode>
  <TermsAgreement>
    <Date>0001-01-01T00:00:00</Date>
    <Version>String</Version>
  </TermsAgreement>
  <WebsiteTermsOfUseAgreement>
    <Date>0001-01-01T00:00:00</Date>
    <Version>String</Version>
  </WebsiteTermsOfUseAgreement>
</ProfileUpdate>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ProfileUpdateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
  <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>
</ProfileUpdateResponse>