Trendsic Platform Service

<back to all web services

RecordsExemptionsRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/records/settings/exemptions
import 'package:servicestack/servicestack.dart';

class ExemptionDto implements IConvertible
{
    String? Name;
    String? Citation;
    String? Clause;

    ExemptionDto({this.Name,this.Citation,this.Clause});
    ExemptionDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'Citation': Citation,
        'Clause': Clause
    };

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

class RecordsExemptionsResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<ExemptionDto>? Government = [];
    List<ExemptionDto>? Standard = [];
    String? Mode;

    RecordsExemptionsResponse({this.ResponseStatus,this.Government,this.Standard,this.Mode});
    RecordsExemptionsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
        Government = JsonConverters.fromJson(json['Government'],'List<ExemptionDto>',context!);
        Standard = JsonConverters.fromJson(json['Standard'],'List<ExemptionDto>',context!);
        Mode = json['Mode'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Government': JsonConverters.toJson(Government,'List<ExemptionDto>',context!),
        'Standard': JsonConverters.toJson(Standard,'List<ExemptionDto>',context!),
        'Mode': Mode
    };

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

class RecordsExemptionsRequest implements IConvertible
{
    RecordsExemptionsRequest();
    RecordsExemptionsRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "RecordsExemptionsRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'ExemptionDto': TypeInfo(TypeOf.Class, create:() => ExemptionDto()),
    'RecordsExemptionsResponse': TypeInfo(TypeOf.Class, create:() => RecordsExemptionsResponse()),
    'List<ExemptionDto>': TypeInfo(TypeOf.Class, create:() => <ExemptionDto>[]),
    'RecordsExemptionsRequest': TypeInfo(TypeOf.Class, create:() => RecordsExemptionsRequest()),
});

Dart RecordsExemptionsRequest 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 /v1/records/settings/exemptions HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Government":[{"Name":"String","Citation":"String","Clause":"String"}],"Standard":[{"Name":"String","Citation":"String","Clause":"String"}],"Mode":"String"}