Trendsic Platform Service

<back to all web services

PoolsRequest

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

class RecordsPoolDto implements IConvertible
{
    int? PoolId;
    String? PoolKey;
    String? Site;
    String? Method;
    String? Icon;
    String? Note;
    String? ItemsJson;
    int? Boxes;
    int? Pages;
    int? WeightLbs;
    int? ThBoxes;
    int? ThWeight;
    String? Status;

    RecordsPoolDto({this.PoolId,this.PoolKey,this.Site,this.Method,this.Icon,this.Note,this.ItemsJson,this.Boxes,this.Pages,this.WeightLbs,this.ThBoxes,this.ThWeight,this.Status});
    RecordsPoolDto.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        PoolId = json['PoolId'];
        PoolKey = json['PoolKey'];
        Site = json['Site'];
        Method = json['Method'];
        Icon = json['Icon'];
        Note = json['Note'];
        ItemsJson = json['ItemsJson'];
        Boxes = json['Boxes'];
        Pages = json['Pages'];
        WeightLbs = json['WeightLbs'];
        ThBoxes = json['ThBoxes'];
        ThWeight = json['ThWeight'];
        Status = json['Status'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'PoolId': PoolId,
        'PoolKey': PoolKey,
        'Site': Site,
        'Method': Method,
        'Icon': Icon,
        'Note': Note,
        'ItemsJson': ItemsJson,
        'Boxes': Boxes,
        'Pages': Pages,
        'WeightLbs': WeightLbs,
        'ThBoxes': ThBoxes,
        'ThWeight': ThWeight,
        'Status': Status
    };

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

class PoolsResponse implements IConvertible
{
    ResponseStatus? ResponseStatus;
    List<RecordsPoolDto>? Pools = [];

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

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

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

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

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

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

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

Dart PoolsRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/records/logistics/pools HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Pools":[{"PoolId":0,"PoolKey":"String","Site":"String","Method":"String","Icon":"String","Note":"String","ItemsJson":"String","Boxes":0,"Pages":0,"WeightLbs":0,"ThBoxes":0,"ThWeight":0,"Status":"String"}]}