Trendsic Platform Service

<back to all web services

GetMyTerminologyRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/me/terminology
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

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

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

class TenantPlanModule implements IConvertible
{
    String? Name;
    String? Status;
    DateTime? ExpiresAt;
    String? MeterKey;
    int? Used;
    int? Allowance;

    TenantPlanModule({this.Name,this.Status,this.ExpiresAt,this.MeterKey,this.Used,this.Allowance});
    TenantPlanModule.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Name = json['Name'];
        Status = json['Status'];
        ExpiresAt = JsonConverters.fromJson(json['ExpiresAt'],'DateTime',context!);
        MeterKey = json['MeterKey'];
        Used = json['Used'];
        Allowance = json['Allowance'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Name': Name,
        'Status': Status,
        'ExpiresAt': JsonConverters.toJson(ExpiresAt,'DateTime',context!),
        'MeterKey': MeterKey,
        'Used': Used,
        'Allowance': Allowance
    };

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

class GetMyTerminologyResponse implements IConvertible
{
    String? PackCode;
    Map<String,String?>? Terms = {};
    Map<String,bool?>? Features = {};
    List<String>? OutOfPack = [];
    bool? WorkspaceSetupCompleted;
    bool? Sandbox;
    Map<String,bool?>? Entitled = {};
    Map<String,String?>? Reasons = {};
    Map<String,bool?>? Chosen = {};
    Map<String,String?>? FeatureModules = {};
    Map<String,TenantPlanModule?>? Modules = {};

    GetMyTerminologyResponse({this.PackCode,this.Terms,this.Features,this.OutOfPack,this.WorkspaceSetupCompleted,this.Sandbox,this.Entitled,this.Reasons,this.Chosen,this.FeatureModules,this.Modules});
    GetMyTerminologyResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PackCode = json['PackCode'];
        Terms = JsonConverters.toStringMap(json['Terms']);
        Features = JsonConverters.fromJson(json['Features'],'Map<String,bool?>',context!);
        OutOfPack = JsonConverters.fromJson(json['OutOfPack'],'List<String>',context!);
        WorkspaceSetupCompleted = json['WorkspaceSetupCompleted'];
        Sandbox = json['Sandbox'];
        Entitled = JsonConverters.fromJson(json['Entitled'],'Map<String,bool?>',context!);
        Reasons = JsonConverters.toStringMap(json['Reasons']);
        Chosen = JsonConverters.fromJson(json['Chosen'],'Map<String,bool?>',context!);
        FeatureModules = JsonConverters.toStringMap(json['FeatureModules']);
        Modules = JsonConverters.fromJson(json['Modules'],'Map<String,TenantPlanModule?>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PackCode': PackCode,
        'Terms': Terms,
        'Features': JsonConverters.toJson(Features,'Map<String,bool?>',context!),
        'OutOfPack': JsonConverters.toJson(OutOfPack,'List<String>',context!),
        'WorkspaceSetupCompleted': WorkspaceSetupCompleted,
        'Sandbox': Sandbox,
        'Entitled': JsonConverters.toJson(Entitled,'Map<String,bool?>',context!),
        'Reasons': Reasons,
        'Chosen': JsonConverters.toJson(Chosen,'Map<String,bool?>',context!),
        'FeatureModules': FeatureModules,
        'Modules': JsonConverters.toJson(Modules,'Map<String,TenantPlanModule?>',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'GetMyTerminologyRequest': TypeInfo(TypeOf.Class, create:() => GetMyTerminologyRequest()),
    'TenantPlanModule': TypeInfo(TypeOf.Class, create:() => TenantPlanModule()),
    'GetMyTerminologyResponse': TypeInfo(TypeOf.Class, create:() => GetMyTerminologyResponse()),
    'Map<String,bool?>': TypeInfo(TypeOf.Class, create:() => Map<String,bool?>()),
    'Map<String,TenantPlanModule?>': TypeInfo(TypeOf.Class, create:() => Map<String,TenantPlanModule?>()),
});

Dart GetMyTerminologyRequest 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/me/terminology HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GetMyTerminologyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Chosen xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>false</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </Chosen>
  <Entitled xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>false</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </Entitled>
  <FeatureModules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </FeatureModules>
  <Features xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringboolean>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>false</d2p1:Value>
    </d2p1:KeyValueOfstringboolean>
  </Features>
  <Modules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringTenantPlanModulezI6_P42Kz>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>
        <Allowance>0</Allowance>
        <ExpiresAt>0001-01-01T00:00:00</ExpiresAt>
        <MeterKey>String</MeterKey>
        <Name>String</Name>
        <Status>String</Status>
        <Used>0</Used>
      </d2p1:Value>
    </d2p1:KeyValueOfstringTenantPlanModulezI6_P42Kz>
  </Modules>
  <OutOfPack xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>String</d2p1:string>
  </OutOfPack>
  <PackCode>String</PackCode>
  <Reasons xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Reasons>
  <Sandbox>false</Sandbox>
  <Terms xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value>String</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Terms>
  <WorkspaceSetupCompleted>false</WorkspaceSetupCompleted>
</GetMyTerminologyResponse>