TicketUserServices

<back to all web services

DiscountCodeTypeValidOwnerCardTypesSearchRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/DiscountCodeTypeValidOwnerCardType/Search
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class DiscountCodeTypeValidOwnerCardTypesSearchRequest
    {
        public Integer discountCodeTypeId = null;
        public Integer ownerCardTypeId = null;
        
        public Integer getDiscountCodeTypeId() { return discountCodeTypeId; }
        public DiscountCodeTypeValidOwnerCardTypesSearchRequest setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; }
        public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
        public DiscountCodeTypeValidOwnerCardTypesSearchRequest setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
    }

    public static class DiscountCodeTypeValidOwnerCardTypesResult
    {
        public ArrayList<DiscountCodeTypeValidOwnerCardType> items = null;
        public Integer statusCode = null;
        public String message = null;
        
        public ArrayList<DiscountCodeTypeValidOwnerCardType> getItems() { return items; }
        public DiscountCodeTypeValidOwnerCardTypesResult setItems(ArrayList<DiscountCodeTypeValidOwnerCardType> value) { this.items = value; return this; }
        public Integer getStatusCode() { return statusCode; }
        public DiscountCodeTypeValidOwnerCardTypesResult setStatusCode(Integer value) { this.statusCode = value; return this; }
        public String getMessage() { return message; }
        public DiscountCodeTypeValidOwnerCardTypesResult setMessage(String value) { this.message = value; return this; }
    }

    public static class DiscountCodeTypeValidOwnerCardType
    {
        public Integer id = null;
        public Integer discountCodeTypeId = null;
        public Integer ownerCardTypeId = null;
        public Boolean isValid = null;
        
        public Integer getId() { return id; }
        public DiscountCodeTypeValidOwnerCardType setId(Integer value) { this.id = value; return this; }
        public Integer getDiscountCodeTypeId() { return discountCodeTypeId; }
        public DiscountCodeTypeValidOwnerCardType setDiscountCodeTypeId(Integer value) { this.discountCodeTypeId = value; return this; }
        public Integer getOwnerCardTypeId() { return ownerCardTypeId; }
        public DiscountCodeTypeValidOwnerCardType setOwnerCardTypeId(Integer value) { this.ownerCardTypeId = value; return this; }
        public Boolean getIsValid() { return isValid; }
        public DiscountCodeTypeValidOwnerCardType setIsValid(Boolean value) { this.isValid = value; return this; }
    }

}

Java DiscountCodeTypeValidOwnerCardTypesSearchRequest DTOs

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

HTTP + CSV

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

POST /DiscountCodeTypeValidOwnerCardType/Search HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"discountCodeTypeId":0,"ownerCardTypeId":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"items":[{"id":0,"discountCodeTypeId":0,"ownerCardTypeId":0,"isValid":false}],"statusCode":0,"message":"String"}