| POST | /api/Vion/ImportExtendedInvoiceInformation | Directe XML aanleveren via Post |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class Result implements IConvertible
{
String? Status;
String? Message;
Result({this.Status,this.Message});
Result.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Status = json['Status'];
Message = json['Message'];
return this;
}
Map<String, dynamic> toJson() => {
'Status': Status,
'Message': Message
};
getTypeName() => "Result";
TypeContext? context = _ctx;
}
class ImportExtendedInvoiceInformation implements IConvertible
{
String? Name;
String? ContentType;
Uint8List? RequestStream;
ImportExtendedInvoiceInformation({this.Name,this.ContentType,this.RequestStream});
ImportExtendedInvoiceInformation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Name = json['Name'];
ContentType = json['ContentType'];
RequestStream = JsonConverters.fromJson(json['RequestStream'],'Uint8List',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Name': Name,
'ContentType': ContentType,
'RequestStream': JsonConverters.toJson(RequestStream,'Uint8List',context!)
};
getTypeName() => "ImportExtendedInvoiceInformation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.vionfood.com', types: <String, TypeInfo> {
'Result': TypeInfo(TypeOf.Class, create:() => Result()),
'ImportExtendedInvoiceInformation': TypeInfo(TypeOf.Class, create:() => ImportExtendedInvoiceInformation()),
'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
});
Dart ImportExtendedInvoiceInformation DTOs
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.
POST /api/Vion/ImportExtendedInvoiceInformation HTTP/1.1
Host: digiofficeapigateway.vionfood.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ImportExtendedInvoiceInformation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DO.Integration.Vion.DTO">
<ContentType>String</ContentType>
<Name>String</Name>
<RequestStream xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" />
</ImportExtendedInvoiceInformation>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DO.Integration.Vion.DTO"> <Message>String</Message> <Status>String</Status> </Result>