GET | /statement/statementtype |
---|
import 'package:servicestack/servicestack.dart';
abstract class ResponseBase
{
ResponseStatus? ResponseStatus;
ResponseBase({this.ResponseStatus});
ResponseBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "ResponseBase";
TypeContext? context = _ctx;
}
abstract class ModifyRequestBase implements IConcurrencyStamp
{
String? ConcurrencyStamp;
ModifyRequestBase({this.ConcurrencyStamp});
ModifyRequestBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ConcurrencyStamp = json['ConcurrencyStamp'];
return this;
}
Map<String, dynamic> toJson() => {
'ConcurrencyStamp': ConcurrencyStamp
};
getTypeName() => "ModifyRequestBase";
TypeContext? context = _ctx;
}
class StatementType
{
static const StatementType PrivacyStatement = const StatementType._(0);
static const StatementType VeoliaSupplierCharter = const StatementType._(1);
static const StatementType VeoliaCoreStandards = const StatementType._(2);
final int _value;
const StatementType._(this._value);
int get value => _value;
static List<StatementType> get values => const [PrivacyStatement,VeoliaSupplierCharter,VeoliaCoreStandards];
}
abstract class StatementBase extends ModifyRequestBase
{
StatementType? StatementType;
String? Url;
StatementBase({this.StatementType,this.Url});
StatementBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
StatementType = JsonConverters.fromJson(json['StatementType'],'StatementType',context!);
Url = json['Url'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'StatementType': JsonConverters.toJson(StatementType,'StatementType',context!),
'Url': Url
});
getTypeName() => "StatementBase";
TypeContext? context = _ctx;
}
class StatementDetails extends StatementBase implements IConvertible
{
StatementDetails();
StatementDetails.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "StatementDetails";
TypeContext? context = _ctx;
}
class BrowseStatementResponse extends ResponseBase implements IConvertible
{
StatementDetails? Statement;
BrowseStatementResponse({this.Statement});
BrowseStatementResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
Statement = JsonConverters.fromJson(json['Statement'],'StatementDetails',context!);
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'Statement': JsonConverters.toJson(Statement,'StatementDetails',context!)
});
getTypeName() => "BrowseStatementResponse";
TypeContext? context = _ctx;
}
class BrowseStatement implements IGet, IConvertible
{
StatementType? StatementType;
BrowseStatement({this.StatementType});
BrowseStatement.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
StatementType = JsonConverters.fromJson(json['StatementType'],'StatementType',context!);
return this;
}
Map<String, dynamic> toJson() => {
'StatementType': JsonConverters.toJson(StatementType,'StatementType',context!)
};
getTypeName() => "BrowseStatement";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'szallitoiportal_be.veolia.hu', types: <String, TypeInfo> {
'ResponseBase': TypeInfo(TypeOf.AbstractClass),
'ModifyRequestBase': TypeInfo(TypeOf.AbstractClass),
'StatementType': TypeInfo(TypeOf.Enum, enumValues:StatementType.values),
'StatementBase': TypeInfo(TypeOf.AbstractClass),
'StatementDetails': TypeInfo(TypeOf.Class, create:() => StatementDetails()),
'BrowseStatementResponse': TypeInfo(TypeOf.Class, create:() => BrowseStatementResponse()),
'BrowseStatement': TypeInfo(TypeOf.Class, create:() => BrowseStatement()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /statement/statementtype HTTP/1.1 Host: szallitoiportal-be.veolia.hu Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <BrowseStatementResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Portal.ServiceDto"> <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> <Statement> <ConcurrencyStamp>String</ConcurrencyStamp> <StatementType>PrivacyStatement</StatementType> <Url>String</Url> </Statement> </BrowseStatementResponse>