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; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
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: text/csv
Content-Type: text/csv
Content-Length: length
{"beeNumber":0,"firstName":"String","lastName":"String","nickname":"String","birthDate":"0001-01-01T00:00:00.0000000","billingAddress":{"firstName":"String","lastName":"String","addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","addressLine5":"String","city":"String","stateCode":"String","postalCode":"String","countryCode":"String"},"shippingAddress":{"firstName":"String","lastName":"String","addressLine1":"String","addressLine2":"String","addressLine3":"String","addressLine4":"String","addressLine5":"String","city":"String","stateCode":"String","postalCode":"String","countryCode":"String"},"governmentId":"String","emailAddress":"String","primaryPhone":{"number":"String","extension":"String","codeIdPhoneType":"String","countryCode":"String"},"additionalPhone":{"number":"String","extension":"String","codeIdPhoneType":"String","countryCode":"String"},"onlineStoreAddress":"String","language":"String","publicityPermission":"String","findMeOnline":false,"oldPassword":"String","newPassword":"String","passwordHint":"String","bankAccount":{"accountName":"String","bankName":"String","accountNumber":"String","routingNumber":"String"},"termsAgreement":{"version":"String","date":"0001-01-01T00:00:00.0000000"},"electronicAgreement":{"version":"String","date":"0001-01-01T00:00:00.0000000"},"agentId":"String","taxExemptCode":"String","customerType":"String","customerTypeEffectiveDate":"0001-01-01T00:00:00.0000000","repAttachmentNumber":0,"repRelationship":"String","preferredDeliveryMethod":"String","noCode21":"String","noCode30":"String","privacyPolicyAgreement":{"version":"String","date":"0001-01-01T00:00:00.0000000"},"websiteTermsOfUseAgreement":{"version":"String","date":"0001-01-01T00:00:00.0000000"},"ageVerificationAgreement":{"version":"String","date":"0001-01-01T00:00:00.0000000"},"caslStatementAgreement":{"agree":"String","date":"0001-01-01T00:00:00.0000000"}}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}