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

GET /v1/records/settings/exemptions HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RecordsExemptionsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Government>
    <ExemptionDto>
      <Citation>String</Citation>
      <Clause>String</Clause>
      <Name>String</Name>
    </ExemptionDto>
  </Government>
  <Mode>String</Mode>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <Standard>
    <ExemptionDto>
      <Citation>String</Citation>
      <Clause>String</Clause>
      <Name>String</Name>
    </ExemptionDto>
  </Standard>
</RecordsExemptionsResponse>