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 BigDecimal getBeeNumber() { return beeNumber; }
public ProfileGet setBeeNumber(BigDecimal value) { this.beeNumber = 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"beeNumber":0,"currentStatus":"String","removalReason":"String","pcTag":"String","labcOwner":0,"pastDueCode":"String","pastDueAmount":0,"creditLimit":0,"currentBalance":0,"selectiveServiceTag":"String","noCode21":"String","noCode30":"String","rep_Acs_ind":false,"campaignDoubleDollars":0,"campaignAwardSales":0,"cycletoDateDoubleDollars":0,"cycletoDateAwardSales":0,"pendingOrdersBalance":0,"hyperwalletAccountStatus":"String","responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"amountDue":0,"lastPaymentAmount":0,"lastPaymentDate":"0001-01-01T00:00:00.0000000"}