/* Options: Date: 2024-05-15 08:55:25 Version: 6.40 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://evovoice.io //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: NewCustomer.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { /** * Creates a new customer */ @Route(Path="/customers", Verbs="POST") @Api(Description="Creates a new customer") public static class NewCustomer implements IReturn, IPost { /** * The account ID to associate this customer with */ @ApiMember(Description="The account ID to associate this customer with") public String accountId = null; /** * The name of the customer */ @ApiMember(Description="The name of the customer") public String name = null; /** * The parent customer for this customer */ @ApiMember(Description="The parent customer for this customer") public String parentCustomerId = null; /** * The reference ID for this customer (e.g. in a third party system) */ @ApiMember(Description="The reference ID for this customer (e.g. in a third party system)") public String referenceId = null; /** * Data values for this customer */ @ApiMember(Description="Data values for this customer") public Struct data = null; public String getAccountId() { return accountId; } public NewCustomer setAccountId(String value) { this.accountId = value; return this; } public String getName() { return name; } public NewCustomer setName(String value) { this.name = value; return this; } public String getParentCustomerId() { return parentCustomerId; } public NewCustomer setParentCustomerId(String value) { this.parentCustomerId = value; return this; } public String getReferenceId() { return referenceId; } public NewCustomer setReferenceId(String value) { this.referenceId = value; return this; } public Struct getData() { return data; } public NewCustomer setData(Struct value) { this.data = value; return this; } private static Object responseType = CustomerInfo.class; public Object getResponseType() { return responseType; } } public static class CustomerInfo extends EntityInfo { /** * The ID of the account associated with this customer */ @ApiMember(Description="The ID of the account associated with this customer") public String accountId = null; /** * The parent customer ID for this customer */ @ApiMember(Description="The parent customer ID for this customer") public String parentCustomerId = null; /** * The breadcrumb to this customer */ @ApiMember(Description="The breadcrumb to this customer") public ArrayList breadcrumb = null; /** * The name of the account associated with this customer */ @ApiMember(Description="The name of the account associated with this customer") public String accountName = null; /** * Is this customer staging or production? */ @ApiMember(Description="Is this customer staging or production?") public Boolean isStaging = null; /** * The name of the company */ @ApiMember(Description="The name of the company") public String name = null; /** * The reference ID for this company */ @ApiMember(Description="The reference ID for this company") public String referenceId = null; /** * This customer's data values */ @ApiMember(Description="This customer's data values") public Struct data = null; /** * The list of tags for this customer */ @ApiMember(Description="The list of tags for this customer") public ArrayList tags = null; /** * This customer's schedule */ @ApiMember(Description="This customer's schedule") public Schedule schedule = null; /** * Integration data for this customer */ @ApiMember(Description="Integration data for this customer") public EntityIntegrationData integrationData = null; /** * Override this customer's billing settings? Otherwise inherits from parent */ @ApiMember(Description="Override this customer's billing settings? Otherwise inherits from parent") public Boolean overrideBillingSettings = null; /** * Billing settings for this customer */ @ApiMember(Description="Billing settings for this customer") public BillingSettings billingSettings = null; /** * Should this customer override the parent customer's app settings */ @ApiMember(Description="Should this customer override the parent customer's app settings") public Boolean overrideAppSettings = null; /** * App / Portal settings for this customer */ @ApiMember(Description="App / Portal settings for this customer") public AppSettings appSettings = null; public String getAccountId() { return accountId; } public CustomerInfo setAccountId(String value) { this.accountId = value; return this; } public String getParentCustomerId() { return parentCustomerId; } public CustomerInfo setParentCustomerId(String value) { this.parentCustomerId = value; return this; } public ArrayList getBreadcrumb() { return breadcrumb; } public CustomerInfo setBreadcrumb(ArrayList value) { this.breadcrumb = value; return this; } public String getAccountName() { return accountName; } public CustomerInfo setAccountName(String value) { this.accountName = value; return this; } public Boolean getIsStaging() { return isStaging; } public CustomerInfo setIsStaging(Boolean value) { this.isStaging = value; return this; } public String getName() { return name; } public CustomerInfo setName(String value) { this.name = value; return this; } public String getReferenceId() { return referenceId; } public CustomerInfo setReferenceId(String value) { this.referenceId = value; return this; } public Struct getData() { return data; } public CustomerInfo setData(Struct value) { this.data = value; return this; } public ArrayList getTags() { return tags; } public CustomerInfo setTags(ArrayList value) { this.tags = value; return this; } public Schedule getSchedule() { return schedule; } public CustomerInfo setSchedule(Schedule value) { this.schedule = value; return this; } public EntityIntegrationData getIntegrationData() { return integrationData; } public CustomerInfo setIntegrationData(EntityIntegrationData value) { this.integrationData = value; return this; } public Boolean isOverrideBillingSettings() { return overrideBillingSettings; } public CustomerInfo setOverrideBillingSettings(Boolean value) { this.overrideBillingSettings = value; return this; } public BillingSettings getBillingSettings() { return billingSettings; } public CustomerInfo setBillingSettings(BillingSettings value) { this.billingSettings = value; return this; } public Boolean isOverrideAppSettings() { return overrideAppSettings; } public CustomerInfo setOverrideAppSettings(Boolean value) { this.overrideAppSettings = value; return this; } public AppSettings getAppSettings() { return appSettings; } public CustomerInfo setAppSettings(AppSettings value) { this.appSettings = value; return this; } } public static class BillingSettings { public BillingItem base = null; public BillingItem localNumbers = null; public BillingItem tollFreeNumbers = null; public BillingItem inboundVoiceCalls = null; public BillingItem outboundVoiceCalls = null; public BillingItem inboundFaxes = null; public BillingItem outboundFaxes = null; public BillingItem inboundSmsMessages = null; public BillingItem outboundSmsMessages = null; public BillingItem getBase() { return base; } public BillingSettings setBase(BillingItem value) { this.base = value; return this; } public BillingItem getLocalNumbers() { return localNumbers; } public BillingSettings setLocalNumbers(BillingItem value) { this.localNumbers = value; return this; } public BillingItem getTollFreeNumbers() { return tollFreeNumbers; } public BillingSettings setTollFreeNumbers(BillingItem value) { this.tollFreeNumbers = value; return this; } public BillingItem getInboundVoiceCalls() { return inboundVoiceCalls; } public BillingSettings setInboundVoiceCalls(BillingItem value) { this.inboundVoiceCalls = value; return this; } public BillingItem getOutboundVoiceCalls() { return outboundVoiceCalls; } public BillingSettings setOutboundVoiceCalls(BillingItem value) { this.outboundVoiceCalls = value; return this; } public BillingItem getInboundFaxes() { return inboundFaxes; } public BillingSettings setInboundFaxes(BillingItem value) { this.inboundFaxes = value; return this; } public BillingItem getOutboundFaxes() { return outboundFaxes; } public BillingSettings setOutboundFaxes(BillingItem value) { this.outboundFaxes = value; return this; } public BillingItem getInboundSmsMessages() { return inboundSmsMessages; } public BillingSettings setInboundSmsMessages(BillingItem value) { this.inboundSmsMessages = value; return this; } public BillingItem getOutboundSmsMessages() { return outboundSmsMessages; } public BillingSettings setOutboundSmsMessages(BillingItem value) { this.outboundSmsMessages = value; return this; } } public static class Struct extends HashMap { } public static class AppSettings { public Boolean enablePhoneNumberManagement = null; public Boolean enableDeviceManagement = null; public Boolean enableDialer = null; public Boolean enableCallHistory = null; public Boolean showFileNameInMessageCenter = null; public String chakraTheme = null; public String customCss = null; public String pageTitle = null; public String stringMappings = null; public String logoutUrl = null; public String portMyNumberUrl = null; public Boolean isEnablePhoneNumberManagement() { return enablePhoneNumberManagement; } public AppSettings setEnablePhoneNumberManagement(Boolean value) { this.enablePhoneNumberManagement = value; return this; } public Boolean isEnableDeviceManagement() { return enableDeviceManagement; } public AppSettings setEnableDeviceManagement(Boolean value) { this.enableDeviceManagement = value; return this; } public Boolean isEnableDialer() { return enableDialer; } public AppSettings setEnableDialer(Boolean value) { this.enableDialer = value; return this; } public Boolean isEnableCallHistory() { return enableCallHistory; } public AppSettings setEnableCallHistory(Boolean value) { this.enableCallHistory = value; return this; } public Boolean isShowFileNameInMessageCenter() { return showFileNameInMessageCenter; } public AppSettings setShowFileNameInMessageCenter(Boolean value) { this.showFileNameInMessageCenter = value; return this; } public String getChakraTheme() { return chakraTheme; } public AppSettings setChakraTheme(String value) { this.chakraTheme = value; return this; } public String getCustomCss() { return customCss; } public AppSettings setCustomCss(String value) { this.customCss = value; return this; } public String getPageTitle() { return pageTitle; } public AppSettings setPageTitle(String value) { this.pageTitle = value; return this; } public String getStringMappings() { return stringMappings; } public AppSettings setStringMappings(String value) { this.stringMappings = value; return this; } public String getLogoutUrl() { return logoutUrl; } public AppSettings setLogoutUrl(String value) { this.logoutUrl = value; return this; } public String getPortMyNumberUrl() { return portMyNumberUrl; } public AppSettings setPortMyNumberUrl(String value) { this.portMyNumberUrl = value; return this; } } public static class Tag { public String id = null; public String name = null; public TagColors color = null; public String getId() { return id; } public Tag setId(String value) { this.id = value; return this; } public String getName() { return name; } public Tag setName(String value) { this.name = value; return this; } public TagColors getColor() { return color; } public Tag setColor(TagColors value) { this.color = value; return this; } } public static class EntityInfo { /** * The ID of the object */ @ApiMember(Description="The ID of the object") public String id = null; /** * The date the object was created */ @ApiMember(Description="The date the object was created") public String dateCreated = null; /** * The date the object was last modified */ @ApiMember(Description="The date the object was last modified") public String dateLastModified = null; /** * The user that created this object */ @ApiMember(Description="The user that created this object") public String createdBy = null; /** * The user that last modified this object */ @ApiMember(Description="The user that last modified this object") public String lastModifiedBy = null; public String getId() { return id; } public EntityInfo setId(String value) { this.id = value; return this; } public String getDateCreated() { return dateCreated; } public EntityInfo setDateCreated(String value) { this.dateCreated = value; return this; } public String getDateLastModified() { return dateLastModified; } public EntityInfo setDateLastModified(String value) { this.dateLastModified = value; return this; } public String getCreatedBy() { return createdBy; } public EntityInfo setCreatedBy(String value) { this.createdBy = value; return this; } public String getLastModifiedBy() { return lastModifiedBy; } public EntityInfo setLastModifiedBy(String value) { this.lastModifiedBy = value; return this; } } public static class CustomerBreadcrumb { public String id = null; public String name = null; public String getId() { return id; } public CustomerBreadcrumb setId(String value) { this.id = value; return this; } public String getName() { return name; } public CustomerBreadcrumb setName(String value) { this.name = value; return this; } } public static class EntityIntegrationData extends HashMap { } public static class BillingItem { public Double baseCost = null; public Double rawUnitMultiplier = null; public Double unitCost = null; public Integer allowance = null; public Double getBaseCost() { return baseCost; } public BillingItem setBaseCost(Double value) { this.baseCost = value; return this; } public Double getRawUnitMultiplier() { return rawUnitMultiplier; } public BillingItem setRawUnitMultiplier(Double value) { this.rawUnitMultiplier = value; return this; } public Double getUnitCost() { return unitCost; } public BillingItem setUnitCost(Double value) { this.unitCost = value; return this; } public Integer getAllowance() { return allowance; } public BillingItem setAllowance(Integer value) { this.allowance = value; return this; } } public static class Value { public Boolean boolValue = null; public String stringValue = null; public Double numberValue = null; public ArrayList listValue = null; public Struct structValue = null; public Boolean isBoolValue() { return boolValue; } public Value setBoolValue(Boolean value) { this.boolValue = value; return this; } public String getStringValue() { return stringValue; } public Value setStringValue(String value) { this.stringValue = value; return this; } public Double getNumberValue() { return numberValue; } public Value setNumberValue(Double value) { this.numberValue = value; return this; } public ArrayList getListValue() { return listValue; } public Value setListValue(ArrayList value) { this.listValue = value; return this; } public Struct getStructValue() { return structValue; } public Value setStructValue(Struct value) { this.structValue = value; return this; } } public static enum TagColors { Magenta, Red, Volcano, Orange, Gold, Lime, Green, Cyan, Blue, GeekBlue, Purple; } public static class IntegrationData { public String thirdPartyId = null; public String getThirdPartyId() { return thirdPartyId; } public IntegrationData setThirdPartyId(String value) { this.thirdPartyId = 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; } } }