POST | /returns/{RMANumber}/inbound-skus/{LineNumber}/receive |
---|
import 'package:servicestack/servicestack.dart';
class ReturnInboundSkuReceiveResponse implements IConvertible
{
ResponseStatus? responseStatus;
bool? fullyReturned;
ReturnInboundSkuReceiveResponse({this.responseStatus,this.fullyReturned});
ReturnInboundSkuReceiveResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
fullyReturned = json['fullyReturned'];
return this;
}
Map<String, dynamic> toJson() => {
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
'fullyReturned': fullyReturned
};
getTypeName() => "ReturnInboundSkuReceiveResponse";
TypeContext? context = _ctx;
}
class ReturnInboundSkuReceive implements IPost, IConvertible
{
String? rmaNumber;
int? lineNumber;
String? skuCode;
int? quantity;
ReturnInboundSkuReceive({this.rmaNumber,this.lineNumber,this.skuCode,this.quantity});
ReturnInboundSkuReceive.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
rmaNumber = json['rmaNumber'];
lineNumber = json['lineNumber'];
skuCode = json['skuCode'];
quantity = json['quantity'];
return this;
}
Map<String, dynamic> toJson() => {
'rmaNumber': rmaNumber,
'lineNumber': lineNumber,
'skuCode': skuCode,
'quantity': quantity
};
getTypeName() => "ReturnInboundSkuReceive";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'extensions.avon.ca', types: <String, TypeInfo> {
'ReturnInboundSkuReceiveResponse': TypeInfo(TypeOf.Class, create:() => ReturnInboundSkuReceiveResponse()),
'ReturnInboundSkuReceive': TypeInfo(TypeOf.Class, create:() => ReturnInboundSkuReceive()),
});
Dart ReturnInboundSkuReceive DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /returns/{RMANumber}/inbound-skus/{LineNumber}/receive HTTP/1.1
Host: extensions.avon.ca
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"rmaNumber":"String","lineNumber":0,"skuCode":"String","quantity":0}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"fullyReturned":false}