TicketUserServices

<back to all web services

EventOwnerTicketTypeToCardConnectionGetRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
GET/EventOwnerTicketTypeToCardConnection/{Id}
import 'package:servicestack/servicestack.dart';

class EventOwnerTicketTypeToCardConnection implements IConvertible
{
    int? id;
    int? ownerCardTypeId;
    int? ownerTicketTypeId;
    bool? active;

    EventOwnerTicketTypeToCardConnection({this.id,this.ownerCardTypeId,this.ownerTicketTypeId,this.active});
    EventOwnerTicketTypeToCardConnection.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        ownerCardTypeId = json['ownerCardTypeId'];
        ownerTicketTypeId = json['ownerTicketTypeId'];
        active = json['active'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'ownerCardTypeId': ownerCardTypeId,
        'ownerTicketTypeId': ownerTicketTypeId,
        'active': active
    };

    getTypeName() => "EventOwnerTicketTypeToCardConnection";
    TypeContext? context = _ctx;
}

class EventOwnerTicketTypeToCardConnectionResult implements IConvertible
{
    EventOwnerTicketTypeToCardConnection? item;
    int? statusCode;
    String? message;

    EventOwnerTicketTypeToCardConnectionResult({this.item,this.statusCode,this.message});
    EventOwnerTicketTypeToCardConnectionResult.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        item = JsonConverters.fromJson(json['item'],'EventOwnerTicketTypeToCardConnection',context!);
        statusCode = json['statusCode'];
        message = json['message'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'item': JsonConverters.toJson(item,'EventOwnerTicketTypeToCardConnection',context!),
        'statusCode': statusCode,
        'message': message
    };

    getTypeName() => "EventOwnerTicketTypeToCardConnectionResult";
    TypeContext? context = _ctx;
}

class EventOwnerTicketTypeToCardConnectionGetRequest implements IConvertible
{
    int? id;

    EventOwnerTicketTypeToCardConnectionGetRequest({this.id});
    EventOwnerTicketTypeToCardConnectionGetRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id
    };

    getTypeName() => "EventOwnerTicketTypeToCardConnectionGetRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'stubbur_autoupdates_live.smartnewapis.com', types: <String, TypeInfo> {
    'EventOwnerTicketTypeToCardConnection': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnection()),
    'EventOwnerTicketTypeToCardConnectionResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnectionResult()),
    'EventOwnerTicketTypeToCardConnectionGetRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnectionGetRequest()),
});

Dart EventOwnerTicketTypeToCardConnectionGetRequest 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.

GET /EventOwnerTicketTypeToCardConnection/{Id} HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"item":{"id":0,"ownerCardTypeId":0,"ownerTicketTypeId":0,"active":false},"statusCode":0,"message":"String"}