| DELETE | /v1/workforce/patterns/{ShiftPatternID} |
|---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class ShiftPatternArchiveRequest
{
public Integer ShiftPatternID = null;
public Integer getShiftPatternID() { return ShiftPatternID; }
public ShiftPatternArchiveRequest setShiftPatternID(Integer value) { this.ShiftPatternID = value; return this; }
}
public static class ShiftPatternsResponse
{
public ArrayList<ShiftPattern> Patterns = new ArrayList<ShiftPattern>();
public ResponseStatus ResponseStatus = null;
public ArrayList<ShiftPattern> getPatterns() { return Patterns; }
public ShiftPatternsResponse setPatterns(ArrayList<ShiftPattern> value) { this.Patterns = value; return this; }
public ResponseStatus getResponseStatus() { return ResponseStatus; }
public ShiftPatternsResponse setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
}
public static class ShiftPattern
{
public Integer ShiftPatternID = null;
public UUID BranchId = null;
public String Code = null;
public String Name = null;
public String Struct = null;
public BigDecimal HoursPerDay = null;
public Integer OnDays = null;
public Integer OffDays = null;
public String PatternType = null;
public Boolean IsNight = null;
public Boolean HasBoundary = null;
public Boolean IsHitch = null;
public Boolean HasTravel = null;
public Boolean IsSeasonal = null;
public String SeasonalWindow = null;
public Boolean IsDayRate = null;
public String OtRuleId = null;
public String PerDiemRuleId = null;
public String Packs = null;
public String Status = null;
public Boolean IsSeed = null;
public Integer AssignedCount = null;
public Integer getShiftPatternID() { return ShiftPatternID; }
public ShiftPattern setShiftPatternID(Integer value) { this.ShiftPatternID = value; return this; }
public UUID getBranchId() { return BranchId; }
public ShiftPattern setBranchId(UUID value) { this.BranchId = value; return this; }
public String getCode() { return Code; }
public ShiftPattern setCode(String value) { this.Code = value; return this; }
public String getName() { return Name; }
public ShiftPattern setName(String value) { this.Name = value; return this; }
public String getStruct() { return Struct; }
public ShiftPattern setStruct(String value) { this.Struct = value; return this; }
public BigDecimal getHoursPerDay() { return HoursPerDay; }
public ShiftPattern setHoursPerDay(BigDecimal value) { this.HoursPerDay = value; return this; }
public Integer getOnDays() { return OnDays; }
public ShiftPattern setOnDays(Integer value) { this.OnDays = value; return this; }
public Integer getOffDays() { return OffDays; }
public ShiftPattern setOffDays(Integer value) { this.OffDays = value; return this; }
public String getPatternType() { return PatternType; }
public ShiftPattern setPatternType(String value) { this.PatternType = value; return this; }
public Boolean getIsNight() { return IsNight; }
public ShiftPattern setIsNight(Boolean value) { this.IsNight = value; return this; }
public Boolean isHasBoundary() { return HasBoundary; }
public ShiftPattern setHasBoundary(Boolean value) { this.HasBoundary = value; return this; }
public Boolean getIsHitch() { return IsHitch; }
public ShiftPattern setIsHitch(Boolean value) { this.IsHitch = value; return this; }
public Boolean isHasTravel() { return HasTravel; }
public ShiftPattern setHasTravel(Boolean value) { this.HasTravel = value; return this; }
public Boolean getIsSeasonal() { return IsSeasonal; }
public ShiftPattern setIsSeasonal(Boolean value) { this.IsSeasonal = value; return this; }
public String getSeasonalWindow() { return SeasonalWindow; }
public ShiftPattern setSeasonalWindow(String value) { this.SeasonalWindow = value; return this; }
public Boolean getIsDayRate() { return IsDayRate; }
public ShiftPattern setIsDayRate(Boolean value) { this.IsDayRate = value; return this; }
public String getOtRuleId() { return OtRuleId; }
public ShiftPattern setOtRuleId(String value) { this.OtRuleId = value; return this; }
public String getPerDiemRuleId() { return PerDiemRuleId; }
public ShiftPattern setPerDiemRuleId(String value) { this.PerDiemRuleId = value; return this; }
public String getPacks() { return Packs; }
public ShiftPattern setPacks(String value) { this.Packs = value; return this; }
public String getStatus() { return Status; }
public ShiftPattern setStatus(String value) { this.Status = value; return this; }
public Boolean getIsSeed() { return IsSeed; }
public ShiftPattern setIsSeed(Boolean value) { this.IsSeed = value; return this; }
public Integer getAssignedCount() { return AssignedCount; }
public ShiftPattern setAssignedCount(Integer value) { this.AssignedCount = value; return this; }
}
}
Java ShiftPatternArchiveRequest DTOs
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.
DELETE /v1/workforce/patterns/{ShiftPatternID} HTTP/1.1
Host: api.dev.dynamics.trendsic.com
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ShiftPatternsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
<Patterns>
<ShiftPattern>
<AssignedCount>0</AssignedCount>
<BranchId>00000000-0000-0000-0000-000000000000</BranchId>
<Code>String</Code>
<HasBoundary>false</HasBoundary>
<HasTravel>false</HasTravel>
<HoursPerDay>0</HoursPerDay>
<IsDayRate>false</IsDayRate>
<IsHitch>false</IsHitch>
<IsNight>false</IsNight>
<IsSeasonal>false</IsSeasonal>
<IsSeed>false</IsSeed>
<Name>String</Name>
<OffDays>0</OffDays>
<OnDays>0</OnDays>
<OtRuleId>String</OtRuleId>
<Packs>String</Packs>
<PatternType>String</PatternType>
<PerDiemRuleId>String</PerDiemRuleId>
<SeasonalWindow>String</SeasonalWindow>
<ShiftPatternID>0</ShiftPatternID>
<Status>String</Status>
<Struct>String</Struct>
</ShiftPattern>
</Patterns>
<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>
</ShiftPatternsResponse>