TicketUserServices

<back to all web services

EventOwnerTicketTypeToCardConnectionCreateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdmin, MobileAppRequired permission:Tickets.Add
The following routes are available for this service:
POST/EventOwnerTicketTypeToCardConnection
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 EventOwnerTicketTypeToCardConnectionCreateRequest implements IConvertible
{
    EventOwnerTicketTypeToCardConnection? item;

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

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

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

    getTypeName() => "EventOwnerTicketTypeToCardConnectionCreateRequest";
    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()),
    'EventOwnerTicketTypeToCardConnectionCreateRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTicketTypeToCardConnectionCreateRequest()),
});

Dart EventOwnerTicketTypeToCardConnectionCreateRequest DTOs

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

HTTP + XML

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

POST /EventOwnerTicketTypeToCardConnection HTTP/1.1 
Host: stubbur-autoupdates-live.smartnewapis.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<EventOwnerTicketTypeToCardConnectionCreateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:Active>false</d2p1:Active>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:OwnerCardTypeId>0</d2p1:OwnerCardTypeId>
    <d2p1:OwnerTicketTypeId>0</d2p1:OwnerTicketTypeId>
  </Item>
</EventOwnerTicketTypeToCardConnectionCreateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<EventOwnerTicketTypeToCardConnectionResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
  <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel.Types">
    <d2p1:Active>false</d2p1:Active>
    <d2p1:ID>0</d2p1:ID>
    <d2p1:OwnerCardTypeId>0</d2p1:OwnerCardTypeId>
    <d2p1:OwnerTicketTypeId>0</d2p1:OwnerTicketTypeId>
  </Item>
  <Message>String</Message>
  <StatusCode>0</StatusCode>
</EventOwnerTicketTypeToCardConnectionResult>