/* Options: Date: 2025-12-06 08:53:09 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://backoffice-api.brovs.com //Package: //GlobalNamespace: BackofficeApi //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: PlaceAddRequest.* //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 BackofficeApi { @Route(Path="/place/add", Verbs="POST") public static class PlaceAddRequest implements IReturn, IPost { public String name = null; public String organizationNumber = null; public Long businessId = null; public PlaceAddress address = null; public String rootCategoryAbsoluteSlug = null; public String getName() { return name; } public PlaceAddRequest setName(String value) { this.name = value; return this; } public String getOrganizationNumber() { return organizationNumber; } public PlaceAddRequest setOrganizationNumber(String value) { this.organizationNumber = value; return this; } public Long getBusinessId() { return businessId; } public PlaceAddRequest setBusinessId(Long value) { this.businessId = value; return this; } public PlaceAddress getAddress() { return address; } public PlaceAddRequest setAddress(PlaceAddress value) { this.address = value; return this; } public String getRootCategoryAbsoluteSlug() { return rootCategoryAbsoluteSlug; } public PlaceAddRequest setRootCategoryAbsoluteSlug(String value) { this.rootCategoryAbsoluteSlug = value; return this; } private static Object responseType = PlaceAddResponse.class; public Object getResponseType() { return responseType; } } public static class PlaceAddResponse { public BackofficePlaceDto place = null; public BackofficePlaceDto getPlace() { return place; } public PlaceAddResponse setPlace(BackofficePlaceDto value) { this.place = value; return this; } } public static class PlaceAddress { public String street = null; public String postalCode = null; public String region = null; public String countryCode = null; public String getStreet() { return street; } public PlaceAddress setStreet(String value) { this.street = value; return this; } public String getPostalCode() { return postalCode; } public PlaceAddress setPostalCode(String value) { this.postalCode = value; return this; } public String getRegion() { return region; } public PlaceAddress setRegion(String value) { this.region = value; return this; } public String getCountryCode() { return countryCode; } public PlaceAddress setCountryCode(String value) { this.countryCode = value; return this; } } public static enum PlaceState { Draft, Active, Paused, Archived; } public static class CategoryDto { public Long id = null; public String name = null; public String slug = null; public String absoluteSlug = null; public Long parentId = null; public String state = null; public Integer position = null; public Long getId() { return id; } public CategoryDto setId(Long value) { this.id = value; return this; } public String getName() { return name; } public CategoryDto setName(String value) { this.name = value; return this; } public String getSlug() { return slug; } public CategoryDto setSlug(String value) { this.slug = value; return this; } public String getAbsoluteSlug() { return absoluteSlug; } public CategoryDto setAbsoluteSlug(String value) { this.absoluteSlug = value; return this; } public Long getParentId() { return parentId; } public CategoryDto setParentId(Long value) { this.parentId = value; return this; } public String getState() { return state; } public CategoryDto setState(String value) { this.state = value; return this; } public Integer getPosition() { return position; } public CategoryDto setPosition(Integer value) { this.position = value; return this; } } public static class BackofficePlaceDto { public Long id = null; public UUID guid = null; public String name = null; public Float longitude = null; public Float latitude = null; public CategoryDto rootCategory = null; public Boolean claimed = null; public String organizationNumber = null; public PlaceState state = null; public String countryCode = null; public String overview = null; public TimeZoneDto timeZoneDto = null; public Long businessId = null; public PlaceContact contact = null; public PlaceAddress address = null; public ArrayList backofficeGrantedStaffAccess = new ArrayList(); public Long getId() { return id; } public BackofficePlaceDto setId(Long value) { this.id = value; return this; } public UUID getGuid() { return guid; } public BackofficePlaceDto setGuid(UUID value) { this.guid = value; return this; } public String getName() { return name; } public BackofficePlaceDto setName(String value) { this.name = value; return this; } public Float getLongitude() { return longitude; } public BackofficePlaceDto setLongitude(Float value) { this.longitude = value; return this; } public Float getLatitude() { return latitude; } public BackofficePlaceDto setLatitude(Float value) { this.latitude = value; return this; } public CategoryDto getRootCategory() { return rootCategory; } public BackofficePlaceDto setRootCategory(CategoryDto value) { this.rootCategory = value; return this; } public Boolean isClaimed() { return claimed; } public BackofficePlaceDto setClaimed(Boolean value) { this.claimed = value; return this; } public String getOrganizationNumber() { return organizationNumber; } public BackofficePlaceDto setOrganizationNumber(String value) { this.organizationNumber = value; return this; } public PlaceState getState() { return state; } public BackofficePlaceDto setState(PlaceState value) { this.state = value; return this; } public String getCountryCode() { return countryCode; } public BackofficePlaceDto setCountryCode(String value) { this.countryCode = value; return this; } public String getOverview() { return overview; } public BackofficePlaceDto setOverview(String value) { this.overview = value; return this; } public TimeZoneDto getTimeZoneDto() { return timeZoneDto; } public BackofficePlaceDto setTimeZoneDto(TimeZoneDto value) { this.timeZoneDto = value; return this; } public Long getBusinessId() { return businessId; } public BackofficePlaceDto setBusinessId(Long value) { this.businessId = value; return this; } public PlaceContact getContact() { return contact; } public BackofficePlaceDto setContact(PlaceContact value) { this.contact = value; return this; } public PlaceAddress getAddress() { return address; } public BackofficePlaceDto setAddress(PlaceAddress value) { this.address = value; return this; } public ArrayList getBackofficeGrantedStaffAccess() { return backofficeGrantedStaffAccess; } public BackofficePlaceDto setBackofficeGrantedStaffAccess(ArrayList value) { this.backofficeGrantedStaffAccess = value; return this; } } public static class TimeZoneDto { public TimeSpan baseUtcOffset = null; public String daylightName = null; public String displayName = null; public String id = null; public String standardName = null; public Boolean supportsDaylightSavingTime = null; public TimeSpan getBaseUtcOffset() { return baseUtcOffset; } public TimeZoneDto setBaseUtcOffset(TimeSpan value) { this.baseUtcOffset = value; return this; } public String getDaylightName() { return daylightName; } public TimeZoneDto setDaylightName(String value) { this.daylightName = value; return this; } public String getDisplayName() { return displayName; } public TimeZoneDto setDisplayName(String value) { this.displayName = value; return this; } public String getId() { return id; } public TimeZoneDto setId(String value) { this.id = value; return this; } public String getStandardName() { return standardName; } public TimeZoneDto setStandardName(String value) { this.standardName = value; return this; } public Boolean isSupportsDaylightSavingTime() { return supportsDaylightSavingTime; } public TimeZoneDto setSupportsDaylightSavingTime(Boolean value) { this.supportsDaylightSavingTime = value; return this; } } public static class PlaceContact { public String phone = null; public String email = null; public String website = null; public String webShop = null; public String getPhone() { return phone; } public PlaceContact setPhone(String value) { this.phone = value; return this; } public String getEmail() { return email; } public PlaceContact setEmail(String value) { this.email = value; return this; } public String getWebsite() { return website; } public PlaceContact setWebsite(String value) { this.website = value; return this; } public String getWebShop() { return webShop; } public PlaceContact setWebShop(String value) { this.webShop = value; return this; } } public static class StaffDto { public Long id = null; public String firstName = null; public String lastName = null; public String email = null; public StaffRole role = null; public Long placeId = null; public Long businessId = null; public Long userId = null; public String placeName = null; public String businessName = null; public String mobileNumber = null; public BusinessRole businessRole = null; public Date lastActiveOn = null; public Long getId() { return id; } public StaffDto setId(Long value) { this.id = value; return this; } public String getFirstName() { return firstName; } public StaffDto setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public StaffDto setLastName(String value) { this.lastName = value; return this; } public String getEmail() { return email; } public StaffDto setEmail(String value) { this.email = value; return this; } public StaffRole getRole() { return role; } public StaffDto setRole(StaffRole value) { this.role = value; return this; } public Long getPlaceId() { return placeId; } public StaffDto setPlaceId(Long value) { this.placeId = value; return this; } public Long getBusinessId() { return businessId; } public StaffDto setBusinessId(Long value) { this.businessId = value; return this; } public Long getUserId() { return userId; } public StaffDto setUserId(Long value) { this.userId = value; return this; } public String getPlaceName() { return placeName; } public StaffDto setPlaceName(String value) { this.placeName = value; return this; } public String getBusinessName() { return businessName; } public StaffDto setBusinessName(String value) { this.businessName = value; return this; } public String getMobileNumber() { return mobileNumber; } public StaffDto setMobileNumber(String value) { this.mobileNumber = value; return this; } public BusinessRole getBusinessRole() { return businessRole; } public StaffDto setBusinessRole(BusinessRole value) { this.businessRole = value; return this; } public Date getLastActiveOn() { return lastActiveOn; } public StaffDto setLastActiveOn(Date value) { this.lastActiveOn = value; return this; } } public static enum StaffRole { Owner, Admin, Regular; } public static enum BusinessRole { Owner, Manager, Sales, Marketing, Other; } }