TicketUserServices

<back to all web services

EventOwnerTrackingDestinationUpdateRequest

Requires Authentication
Requires any of the roles:Admin, TeamAdminRequired permission:Tickets.Add
The following routes are available for this service:
PUT/EventOwnerTrackingDestination
import 'package:servicestack/servicestack.dart';

class EventOwnerTrackingDestination implements IConvertible
{
    int? id;
    int? eventOwnerId;
    // @StringLength(32)
    String? provider;

    // @StringLength(64)
    String? publicId;

    bool? serverSideEnabled;
    // @StringLength(32)
    String? testEventCode;

    bool? isActive;
    DateTime? createdAt;
    DateTime? lastChanged;

    EventOwnerTrackingDestination({this.id,this.eventOwnerId,this.provider,this.publicId,this.serverSideEnabled,this.testEventCode,this.isActive,this.createdAt,this.lastChanged});
    EventOwnerTrackingDestination.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        eventOwnerId = json['eventOwnerId'];
        provider = json['provider'];
        publicId = json['publicId'];
        serverSideEnabled = json['serverSideEnabled'];
        testEventCode = json['testEventCode'];
        isActive = json['isActive'];
        createdAt = JsonConverters.fromJson(json['createdAt'],'DateTime',context!);
        lastChanged = JsonConverters.fromJson(json['lastChanged'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'eventOwnerId': eventOwnerId,
        'provider': provider,
        'publicId': publicId,
        'serverSideEnabled': serverSideEnabled,
        'testEventCode': testEventCode,
        'isActive': isActive,
        'createdAt': JsonConverters.toJson(createdAt,'DateTime',context!),
        'lastChanged': JsonConverters.toJson(lastChanged,'DateTime',context!)
    };

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

class EventOwnerTrackingDestinationResult implements IConvertible
{
    EventOwnerTrackingDestination? item;
    int? statusCode;
    String? message;

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

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

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

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

class EventOwnerTrackingDestinationUpdateRequest implements IConvertible
{
    EventOwnerTrackingDestination? item;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'stubbur_app.azurewebsites.net', types: <String, TypeInfo> {
    'EventOwnerTrackingDestination': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestination()),
    'EventOwnerTrackingDestinationResult': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationResult()),
    'EventOwnerTrackingDestinationUpdateRequest': TypeInfo(TypeOf.Class, create:() => EventOwnerTrackingDestinationUpdateRequest()),
});

Dart EventOwnerTrackingDestinationUpdateRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

PUT /EventOwnerTrackingDestination HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"item":{"id":0,"eventOwnerId":0,"provider":"String","publicId":"String","serverSideEnabled":false,"testEventCode":"String","isActive":false,"createdAt":"0001-01-01T00:00:00.0000000","lastChanged":"0001-01-01T00:00:00.0000000"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"item":{"id":0,"eventOwnerId":0,"provider":"String","publicId":"String","serverSideEnabled":false,"testEventCode":"String","isActive":false,"createdAt":"0001-01-01T00:00:00.0000000","lastChanged":"0001-01-01T00:00:00.0000000"},"statusCode":0,"message":"String"}