| POST | /api/SalesForce/Event |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SalesForceCreateUpdateEvent
{
public String ClassName = null;
public String UniqueId = null;
public Date CreatedDateTime = null;
public Integer ClientId = null;
public String GroupId = null;
public String EventName = null;
public String EventDescription = null;
public String Region = null;
public String CostCenter = null;
public String RegionCostCenter = null;
public String getClassName() { return ClassName; }
public SalesForceCreateUpdateEvent setClassName(String value) { this.ClassName = value; return this; }
public String getUniqueId() { return UniqueId; }
public SalesForceCreateUpdateEvent setUniqueId(String value) { this.UniqueId = value; return this; }
public Date getCreatedDateTime() { return CreatedDateTime; }
public SalesForceCreateUpdateEvent setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
public Integer getClientId() { return ClientId; }
public SalesForceCreateUpdateEvent setClientId(Integer value) { this.ClientId = value; return this; }
public String getGroupId() { return GroupId; }
public SalesForceCreateUpdateEvent setGroupId(String value) { this.GroupId = value; return this; }
public String getEventName() { return EventName; }
public SalesForceCreateUpdateEvent setEventName(String value) { this.EventName = value; return this; }
public String getEventDescription() { return EventDescription; }
public SalesForceCreateUpdateEvent setEventDescription(String value) { this.EventDescription = value; return this; }
public String getRegion() { return Region; }
public SalesForceCreateUpdateEvent setRegion(String value) { this.Region = value; return this; }
public String getCostCenter() { return CostCenter; }
public SalesForceCreateUpdateEvent setCostCenter(String value) { this.CostCenter = value; return this; }
public String getRegionCostCenter() { return RegionCostCenter; }
public SalesForceCreateUpdateEvent setRegionCostCenter(String value) { this.RegionCostCenter = value; return this; }
}
public static class SalesForceCreateUpdateEventReply implements IHaveErrorField
{
public String ClassName = null;
public String UniqueId = null;
public Date CreatedDateTime = null;
public Integer ClientId = null;
public String BillhighwaycampaignId = null;
public Integer ErrorCode = null;
public String ErrorMessage = null;
public Boolean IsError = null;
public String getClassName() { return ClassName; }
public SalesForceCreateUpdateEventReply setClassName(String value) { this.ClassName = value; return this; }
public String getUniqueId() { return UniqueId; }
public SalesForceCreateUpdateEventReply setUniqueId(String value) { this.UniqueId = value; return this; }
public Date getCreatedDateTime() { return CreatedDateTime; }
public SalesForceCreateUpdateEventReply setCreatedDateTime(Date value) { this.CreatedDateTime = value; return this; }
public Integer getClientId() { return ClientId; }
public SalesForceCreateUpdateEventReply setClientId(Integer value) { this.ClientId = value; return this; }
public String getBillhighwaycampaignId() { return BillhighwaycampaignId; }
public SalesForceCreateUpdateEventReply setBillhighwaycampaignId(String value) { this.BillhighwaycampaignId = value; return this; }
public Integer getErrorCode() { return ErrorCode; }
public SalesForceCreateUpdateEventReply setErrorCode(Integer value) { this.ErrorCode = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public SalesForceCreateUpdateEventReply setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public Boolean getIsError() { return IsError; }
public SalesForceCreateUpdateEventReply setIsError(Boolean value) { this.IsError = value; return this; }
}
}
Java SalesForceCreateUpdateEvent DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/SalesForce/Event HTTP/1.1
Host: devapi.billhighway.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
GroupId: String,
EventName: String,
EventDescription: String,
Region: String,
CostCenter: String,
RegionCostCenter: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ClassName: String,
UniqueId: String,
CreatedDateTime: 0001-01-01,
ClientId: 0,
BillhighwaycampaignId: String,
ErrorCode: 0,
ErrorMessage: String,
IsError: False
}