BokaMera.API.Host

<back to all web services

ServicePricesMappingQuery

Requires Authentication
Requires any of the roles:bookingsupplier-administrator-write, superadmin
The following routes are available for this service:
GET/services/prices/mappingsGet all price mappings for all service pricesGet all prices mapping for all service prices
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    @ValidateRequest(Validator="IsAuthenticated")
    public static class ServicePricesMappingQuery implements ICompany
    {
        /**
        * Company to show services for
        */
        @ApiMember(Description="Company to show services for")
        public UUID CompanyId = null;

        /**
        * ReferenceType
        */
        @ApiMember(Description="ReferenceType")
        public String ReferenceType = null;
        
        public UUID getCompanyId() { return CompanyId; }
        public ServicePricesMappingQuery setCompanyId(UUID value) { this.CompanyId = value; return this; }
        public String getReferenceType() { return ReferenceType; }
        public ServicePricesMappingQuery setReferenceType(String value) { this.ReferenceType = value; return this; }
    }

    public static class ServicePriceMappingResponse
    {
        /**
        * The company id
        */
        @ApiMember(Description="The company id")
        public UUID CompanyId = null;

        public UUID Id = null;
        /**
        * The price id
        */
        @ApiMember(Description="The price id")
        public Integer PriceId = null;

        /**
        * The external reference
        */
        @ApiMember(Description="The external reference")
        public String ExternalReference = null;

        /**
        * The Reference Type
        */
        @ApiMember(Description="The Reference Type")
        public String ReferenceType = null;
        
        public UUID getCompanyId() { return CompanyId; }
        public ServicePriceMappingResponse setCompanyId(UUID value) { this.CompanyId = value; return this; }
        public UUID getId() { return Id; }
        public ServicePriceMappingResponse setId(UUID value) { this.Id = value; return this; }
        public Integer getPriceId() { return PriceId; }
        public ServicePriceMappingResponse setPriceId(Integer value) { this.PriceId = value; return this; }
        public String getExternalReference() { return ExternalReference; }
        public ServicePriceMappingResponse setExternalReference(String value) { this.ExternalReference = value; return this; }
        public String getReferenceType() { return ReferenceType; }
        public ServicePriceMappingResponse setReferenceType(String value) { this.ReferenceType = value; return this; }
    }

}

Java ServicePricesMappingQuery DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /services/prices/mappings HTTP/1.1 
Host: testapi.bokamera.se 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"PriceId":0,"ExternalReference":"String","ReferenceType":"String"}