MBFSPreferences

<back to all web services

IntentionsUpdateRequest

The following routes are available for this service:
POST/IntentionsUpdate/
import 'package:servicestack/servicestack.dart';

class Response implements IConvertible
{
    String? Code;
    String? Message;

    Response({this.Code,this.Message});
    Response.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class IntentionsUpdateResponse implements IConvertible
{
    Response? ResponseStatus;

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

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

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

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

class IntentionsUpdateRequest implements IConvertible
{
    String? ContractNumber;
    String? Intention;
    String? IntentionsSource;
    DateTime? IntentionsDateTime;

    IntentionsUpdateRequest({this.ContractNumber,this.Intention,this.IntentionsSource,this.IntentionsDateTime});
    IntentionsUpdateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        ContractNumber = json['ContractNumber'];
        Intention = json['Intention'];
        IntentionsSource = json['IntentionsSource'];
        IntentionsDateTime = JsonConverters.fromJson(json['IntentionsDateTime'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'ContractNumber': ContractNumber,
        'Intention': Intention,
        'IntentionsSource': IntentionsSource,
        'IntentionsDateTime': JsonConverters.toJson(IntentionsDateTime,'DateTime',context!)
    };

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

TypeContext _ctx = TypeContext(library: 'webservices.mbukdatabase.co.uk', types: <String, TypeInfo> {
    'Response': TypeInfo(TypeOf.Class, create:() => Response()),
    'IntentionsUpdateResponse': TypeInfo(TypeOf.Class, create:() => IntentionsUpdateResponse()),
    'IntentionsUpdateRequest': TypeInfo(TypeOf.Class, create:() => IntentionsUpdateRequest()),
});

Dart IntentionsUpdateRequest 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.

POST /IntentionsUpdate/ HTTP/1.1 
Host: webservices.mbukdatabase.co.uk 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<IntentionsUpdateRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBFSPreferences.ServiceModel">
  <ContractNumber>String</ContractNumber>
  <Intention>String</Intention>
  <IntentionsDateTime>0001-01-01T00:00:00</IntentionsDateTime>
  <IntentionsSource>String</IntentionsSource>
</IntentionsUpdateRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<IntentionsUpdateResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MBFSPreferences.ServiceModel">
  <ResponseStatus>
    <Code>String</Code>
    <Message>String</Message>
  </ResponseStatus>
</IntentionsUpdateResponse>