/* Options: Date: 2025-05-04 13:56:30 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: TestSchedule.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { /** * Test the customer's schedule */ @Route(Path="/customers/{customerId}/test-schedule", Verbs="POST") // @Route(Path="/endpoints/{endpointId}/test-schedule", Verbs="POST") @Api(Description="Test the customer's schedule") public static class TestSchedule implements IReturn { /** * The ID of the customer whose schedule you want to test */ @ApiMember(Description="The ID of the customer whose schedule you want to test") public String customerId = null; /** * The ID of the endpoint whose schedule you want to test. */ @ApiMember(Description="The ID of the endpoint whose schedule you want to test.") public String endpointId = null; /** * The schedule to use (leave null to use the current saved schedule) */ @ApiMember(Description="The schedule to use (leave null to use the current saved schedule)") public Schedule schedule = null; /** * The ISO string of the date and time you want to test */ @ApiMember(Description="The ISO string of the date and time you want to test") public String dateTime = null; public String getCustomerId() { return customerId; } public TestSchedule setCustomerId(String value) { this.customerId = value; return this; } public String getEndpointId() { return endpointId; } public TestSchedule setEndpointId(String value) { this.endpointId = value; return this; } public Schedule getSchedule() { return schedule; } public TestSchedule setSchedule(Schedule value) { this.schedule = value; return this; } public String getDateTime() { return dateTime; } public TestSchedule setDateTime(String value) { this.dateTime = value; return this; } private static Object responseType = TestScheduleResponse.class; public Object getResponseType() { return responseType; } } public static class TestScheduleResponse { public String stateName = null; public String timeZoneId = null; public String getStateName() { return stateName; } public TestScheduleResponse setStateName(String value) { this.stateName = value; return this; } public String getTimeZoneId() { return timeZoneId; } public TestScheduleResponse setTimeZoneId(String value) { this.timeZoneId = value; return this; } } public static class Schedule { public String timeZoneId = null; public Boolean inherit = null; public Boolean forceClosed = null; public ArrayList rules = null; public String defaultState = null; public String getTimeZoneId() { return timeZoneId; } public Schedule setTimeZoneId(String value) { this.timeZoneId = value; return this; } public Boolean isInherit() { return inherit; } public Schedule setInherit(Boolean value) { this.inherit = value; return this; } public Boolean isForceClosed() { return forceClosed; } public Schedule setForceClosed(Boolean value) { this.forceClosed = value; return this; } public ArrayList getRules() { return rules; } public Schedule setRules(ArrayList value) { this.rules = value; return this; } public String getDefaultState() { return defaultState; } public Schedule setDefaultState(String value) { this.defaultState = value; return this; } } }