Trendsic Platform Service

<back to all web services

CoverageSelfCardRequest

Requires Authentication
The following routes are available for this service:
GET,OPTIONS/v1/coverage/self/card/{CoverageGapId}
import 'package:servicestack/servicestack.dart';

class CoverageSelfEligibility implements IConvertible
{
    String? Tone;
    String? Text;
    bool? CanClaim;
    String? ClaimLabel;

    CoverageSelfEligibility({this.Tone,this.Text,this.CanClaim,this.ClaimLabel});
    CoverageSelfEligibility.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Tone = json['Tone'];
        Text = json['Text'];
        CanClaim = json['CanClaim'];
        ClaimLabel = json['ClaimLabel'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Tone': Tone,
        'Text': Text,
        'CanClaim': CanClaim,
        'ClaimLabel': ClaimLabel
    };

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

class CoverageSelfMatrixRow implements IConvertible
{
    String? Name;
    String? Note;
    String? Tone;

    CoverageSelfMatrixRow({this.Name,this.Note,this.Tone});
    CoverageSelfMatrixRow.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class CoverageSelfCard implements IConvertible
{
    int? CoverageGapId;
    String? Kind;
    String? Status;
    String? ShiftDay;
    String? ShiftWindow;
    DateTime? ShiftStartUtc;
    String? Site;
    String? RoleNeeded;
    String? ExpiryLabel;
    String? PosterName;
    int? EligibleCount;
    int? IneligibleCount;
    CoverageSelfEligibility? MyEligibility;
    List<CoverageSelfMatrixRow>? Matrix = [];
    String? SwapState;
    String? SwapFromName;
    String? SwapTargetName;
    String? OfferShift;
    String? WantShift;
    bool? ConflictOk;
    String? ConflictLabel;
    bool? CanRespond;

    CoverageSelfCard({this.CoverageGapId,this.Kind,this.Status,this.ShiftDay,this.ShiftWindow,this.ShiftStartUtc,this.Site,this.RoleNeeded,this.ExpiryLabel,this.PosterName,this.EligibleCount,this.IneligibleCount,this.MyEligibility,this.Matrix,this.SwapState,this.SwapFromName,this.SwapTargetName,this.OfferShift,this.WantShift,this.ConflictOk,this.ConflictLabel,this.CanRespond});
    CoverageSelfCard.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        CoverageGapId = json['CoverageGapId'];
        Kind = json['Kind'];
        Status = json['Status'];
        ShiftDay = json['ShiftDay'];
        ShiftWindow = json['ShiftWindow'];
        ShiftStartUtc = JsonConverters.fromJson(json['ShiftStartUtc'],'DateTime',context!);
        Site = json['Site'];
        RoleNeeded = json['RoleNeeded'];
        ExpiryLabel = json['ExpiryLabel'];
        PosterName = json['PosterName'];
        EligibleCount = json['EligibleCount'];
        IneligibleCount = json['IneligibleCount'];
        MyEligibility = JsonConverters.fromJson(json['MyEligibility'],'CoverageSelfEligibility',context!);
        Matrix = JsonConverters.fromJson(json['Matrix'],'List<CoverageSelfMatrixRow>',context!);
        SwapState = json['SwapState'];
        SwapFromName = json['SwapFromName'];
        SwapTargetName = json['SwapTargetName'];
        OfferShift = json['OfferShift'];
        WantShift = json['WantShift'];
        ConflictOk = json['ConflictOk'];
        ConflictLabel = json['ConflictLabel'];
        CanRespond = json['CanRespond'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'CoverageGapId': CoverageGapId,
        'Kind': Kind,
        'Status': Status,
        'ShiftDay': ShiftDay,
        'ShiftWindow': ShiftWindow,
        'ShiftStartUtc': JsonConverters.toJson(ShiftStartUtc,'DateTime',context!),
        'Site': Site,
        'RoleNeeded': RoleNeeded,
        'ExpiryLabel': ExpiryLabel,
        'PosterName': PosterName,
        'EligibleCount': EligibleCount,
        'IneligibleCount': IneligibleCount,
        'MyEligibility': JsonConverters.toJson(MyEligibility,'CoverageSelfEligibility',context!),
        'Matrix': JsonConverters.toJson(Matrix,'List<CoverageSelfMatrixRow>',context!),
        'SwapState': SwapState,
        'SwapFromName': SwapFromName,
        'SwapTargetName': SwapTargetName,
        'OfferShift': OfferShift,
        'WantShift': WantShift,
        'ConflictOk': ConflictOk,
        'ConflictLabel': ConflictLabel,
        'CanRespond': CanRespond
    };

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

class CoverageSelfCardResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    CoverageSelfCard? Card;

    CoverageSelfCardResponse({this.ResponseStatus,this.Card});
    CoverageSelfCardResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!),
        'Card': JsonConverters.toJson(Card,'CoverageSelfCard',context!)
    };

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

class CoverageSelfCardRequest implements IConvertible
{
    int? CoverageGapId;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'CoverageSelfEligibility': TypeInfo(TypeOf.Class, create:() => CoverageSelfEligibility()),
    'CoverageSelfMatrixRow': TypeInfo(TypeOf.Class, create:() => CoverageSelfMatrixRow()),
    'CoverageSelfCard': TypeInfo(TypeOf.Class, create:() => CoverageSelfCard()),
    'List<CoverageSelfMatrixRow>': TypeInfo(TypeOf.Class, create:() => <CoverageSelfMatrixRow>[]),
    'CoverageSelfCardResponse': TypeInfo(TypeOf.Class, create:() => CoverageSelfCardResponse()),
    'CoverageSelfCardRequest': TypeInfo(TypeOf.Class, create:() => CoverageSelfCardRequest()),
});

Dart CoverageSelfCardRequest 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/coverage/self/card/{CoverageGapId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<CoverageSelfCardResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CRM.AgencyPlatform.API.Internal">
  <Card>
    <CanRespond>false</CanRespond>
    <ConflictLabel>String</ConflictLabel>
    <ConflictOk>false</ConflictOk>
    <CoverageGapId>0</CoverageGapId>
    <EligibleCount>0</EligibleCount>
    <ExpiryLabel>String</ExpiryLabel>
    <IneligibleCount>0</IneligibleCount>
    <Kind>String</Kind>
    <Matrix>
      <CoverageSelfMatrixRow>
        <Name>String</Name>
        <Note>String</Note>
        <Tone>String</Tone>
      </CoverageSelfMatrixRow>
    </Matrix>
    <MyEligibility>
      <CanClaim>false</CanClaim>
      <ClaimLabel>String</ClaimLabel>
      <Text>String</Text>
      <Tone>String</Tone>
    </MyEligibility>
    <OfferShift>String</OfferShift>
    <PosterName>String</PosterName>
    <RoleNeeded>String</RoleNeeded>
    <ShiftDay>String</ShiftDay>
    <ShiftStartUtc>0001-01-01T00:00:00</ShiftStartUtc>
    <ShiftWindow>String</ShiftWindow>
    <Site>String</Site>
    <Status>String</Status>
    <SwapFromName>String</SwapFromName>
    <SwapState>String</SwapState>
    <SwapTargetName>String</SwapTargetName>
    <WantShift>String</WantShift>
  </Card>
  <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>
</CoverageSelfCardResponse>