AffiliationAPI

<back to all web services

GetLinkAffiliationOptionsRequest

Requires Authentication
The following routes are available for this service:
GET/v4/link-affiliation-options
import 'package:servicestack/servicestack.dart';

class LinkAffiliationOptionsResponse implements ILinkAffiliationOptionsResponse, IConvertible
{
    String? id;
    String? type;
    String? linkId;
    bool? affiliationDisabled;
    DateTime? createdDate;

    LinkAffiliationOptionsResponse({this.id,this.type,this.linkId,this.affiliationDisabled,this.createdDate});
    LinkAffiliationOptionsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        type = json['type'];
        linkId = json['linkId'];
        affiliationDisabled = json['affiliationDisabled'];
        createdDate = JsonConverters.fromJson(json['createdDate'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'type': type,
        'linkId': linkId,
        'affiliationDisabled': affiliationDisabled,
        'createdDate': JsonConverters.toJson(createdDate,'DateTime',context!)
    };

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

class GetLinkAffiliationOptionsResponse implements IGetLinkAffiliationOptionsResponse, IConvertible
{
    LinkAffiliationOptionsResponse? data;
    ResponseStatus? responseStatus;

    GetLinkAffiliationOptionsResponse({this.data,this.responseStatus});
    GetLinkAffiliationOptionsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

// @DataContract
class GetLinkAffiliationOptionsRequest implements IGetLinkAffiliationOptionsRequest, IConvertible
{
    // @DataMember(Name="linkId", IsRequired=true)
    String? linkId;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'affiliation_api_zane.dev.platform.georiot.com', types: <String, TypeInfo> {
    'LinkAffiliationOptionsResponse': TypeInfo(TypeOf.Class, create:() => LinkAffiliationOptionsResponse()),
    'GetLinkAffiliationOptionsResponse': TypeInfo(TypeOf.Class, create:() => GetLinkAffiliationOptionsResponse()),
    'GetLinkAffiliationOptionsRequest': TypeInfo(TypeOf.Class, create:() => GetLinkAffiliationOptionsRequest()),
});

Dart GetLinkAffiliationOptionsRequest DTOs

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

HTTP + OTHER

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

GET /v4/link-affiliation-options HTTP/1.1 
Host: affiliation-api-zane.dev.platform.georiot.com 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"data":{"id":"String","type":"link-affiliation-options","linkId":"String","affiliationDisabled":false,"createdDate":"0001-01-01T00:00:00.0000000"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}