TicketUserServices

<back to all web services

DiscountCodeTypeValidOwnerCardTypeDeleteRequest

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

class DiscountCodeTypeValidOwnerCardTypeDeleteResult implements IConvertible
{
    int? statusCode;
    String? message;

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

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

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

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

class DiscountCodeTypeValidOwnerCardTypeDeleteRequest implements IConvertible
{
    int? id;

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

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

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

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

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

Dart DiscountCodeTypeValidOwnerCardTypeDeleteRequest DTOs

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

HTTP + JSV

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

DELETE /DiscountCodeTypeValidOwnerCardType/{Id} HTTP/1.1 
Host: stubbur-app.azurewebsites.net 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	statusCode: 0,
	message: String
}