| GET | /profile/{BeeNumber} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ProfileGet implements IGet
{
public BigDecimal beeNumber = null;
public String pageName = null;
public BigDecimal getBeeNumber() { return beeNumber; }
public ProfileGet setBeeNumber(BigDecimal value) { this.beeNumber = value; return this; }
public String getPageName() { return pageName; }
public ProfileGet setPageName(String value) { this.pageName = value; return this; }
}
public static class ProfileGetResponse
{
public BigDecimal beeNumber = null;
public String currentStatus = null;
public String removalReason = null;
public String pcTag = null;
public BigDecimal labcOwner = null;
public String pastDueCode = null;
public BigDecimal pastDueAmount = null;
public BigDecimal creditLimit = null;
public BigDecimal currentBalance = null;
public String selectiveServiceTag = null;
public String noCode21 = null;
public String noCode30 = null;
public Boolean rep_Acs_ind = null;
public BigDecimal campaignDoubleDollars = null;
public BigDecimal campaignAwardSales = null;
public BigDecimal cycletoDateDoubleDollars = null;
public BigDecimal cycletoDateAwardSales = null;
public BigDecimal pendingOrdersBalance = null;
public String hyperwalletAccountStatus = null;
public ResponseStatus responseStatus = null;
public BigDecimal amountDue = null;
public BigDecimal lastPaymentAmount = null;
public Date lastPaymentDate = null;
public BigDecimal getBeeNumber() { return beeNumber; }
public ProfileGetResponse setBeeNumber(BigDecimal value) { this.beeNumber = value; return this; }
public String getCurrentStatus() { return currentStatus; }
public ProfileGetResponse setCurrentStatus(String value) { this.currentStatus = value; return this; }
public String getRemovalReason() { return removalReason; }
public ProfileGetResponse setRemovalReason(String value) { this.removalReason = value; return this; }
public String getPcTag() { return pcTag; }
public ProfileGetResponse setPcTag(String value) { this.pcTag = value; return this; }
public BigDecimal getLabcOwner() { return labcOwner; }
public ProfileGetResponse setLabcOwner(BigDecimal value) { this.labcOwner = value; return this; }
public String getPastDueCode() { return pastDueCode; }
public ProfileGetResponse setPastDueCode(String value) { this.pastDueCode = value; return this; }
public BigDecimal getPastDueAmount() { return pastDueAmount; }
public ProfileGetResponse setPastDueAmount(BigDecimal value) { this.pastDueAmount = value; return this; }
public BigDecimal getCreditLimit() { return creditLimit; }
public ProfileGetResponse setCreditLimit(BigDecimal value) { this.creditLimit = value; return this; }
public BigDecimal getCurrentBalance() { return currentBalance; }
public ProfileGetResponse setCurrentBalance(BigDecimal value) { this.currentBalance = value; return this; }
public String getSelectiveServiceTag() { return selectiveServiceTag; }
public ProfileGetResponse setSelectiveServiceTag(String value) { this.selectiveServiceTag = value; return this; }
public String getNoCode21() { return noCode21; }
public ProfileGetResponse setNoCode21(String value) { this.noCode21 = value; return this; }
public String getNoCode30() { return noCode30; }
public ProfileGetResponse setNoCode30(String value) { this.noCode30 = value; return this; }
public Boolean isRepAcsInd() { return rep_Acs_ind; }
public ProfileGetResponse setRepAcsInd(Boolean value) { this.rep_Acs_ind = value; return this; }
public BigDecimal getCampaignDoubleDollars() { return campaignDoubleDollars; }
public ProfileGetResponse setCampaignDoubleDollars(BigDecimal value) { this.campaignDoubleDollars = value; return this; }
public BigDecimal getCampaignAwardSales() { return campaignAwardSales; }
public ProfileGetResponse setCampaignAwardSales(BigDecimal value) { this.campaignAwardSales = value; return this; }
public BigDecimal getCycletoDateDoubleDollars() { return cycletoDateDoubleDollars; }
public ProfileGetResponse setCycletoDateDoubleDollars(BigDecimal value) { this.cycletoDateDoubleDollars = value; return this; }
public BigDecimal getCycletoDateAwardSales() { return cycletoDateAwardSales; }
public ProfileGetResponse setCycletoDateAwardSales(BigDecimal value) { this.cycletoDateAwardSales = value; return this; }
public BigDecimal getPendingOrdersBalance() { return pendingOrdersBalance; }
public ProfileGetResponse setPendingOrdersBalance(BigDecimal value) { this.pendingOrdersBalance = value; return this; }
public String getHyperwalletAccountStatus() { return hyperwalletAccountStatus; }
public ProfileGetResponse setHyperwalletAccountStatus(String value) { this.hyperwalletAccountStatus = value; return this; }
public ResponseStatus getResponseStatus() { return responseStatus; }
public ProfileGetResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public BigDecimal getAmountDue() { return amountDue; }
public ProfileGetResponse setAmountDue(BigDecimal value) { this.amountDue = value; return this; }
public BigDecimal getLastPaymentAmount() { return lastPaymentAmount; }
public ProfileGetResponse setLastPaymentAmount(BigDecimal value) { this.lastPaymentAmount = value; return this; }
public Date getLastPaymentDate() { return lastPaymentDate; }
public ProfileGetResponse setLastPaymentDate(Date value) { this.lastPaymentDate = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /profile/{BeeNumber} HTTP/1.1
Host: extensions.avon.ca
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProfileGetResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NAV.ServiceModel">
<AmountDue>0</AmountDue>
<BeeNumber>0</BeeNumber>
<CampaignAwardSales>0</CampaignAwardSales>
<CampaignDoubleDollars>0</CampaignDoubleDollars>
<CreditLimit>0</CreditLimit>
<CurrentBalance>0</CurrentBalance>
<CurrentStatus>String</CurrentStatus>
<CycletoDateAwardSales>0</CycletoDateAwardSales>
<CycletoDateDoubleDollars>0</CycletoDateDoubleDollars>
<HyperwalletAccountStatus>String</HyperwalletAccountStatus>
<LabcOwner>0</LabcOwner>
<LastPaymentAmount>0</LastPaymentAmount>
<LastPaymentDate>0001-01-01T00:00:00</LastPaymentDate>
<NoCode21>String</NoCode21>
<NoCode30>String</NoCode30>
<PastDueAmount>0</PastDueAmount>
<PastDueCode>String</PastDueCode>
<PcTag>String</PcTag>
<PendingOrdersBalance>0</PendingOrdersBalance>
<RemovalReason>String</RemovalReason>
<Rep_Acs_ind>false</Rep_Acs_ind>
<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>
<SelectiveServiceTag>String</SelectiveServiceTag>
</ProfileGetResponse>