GET | /returns/{RMANumber}/usps-label |
---|
import 'package:servicestack/servicestack.dart';
class ReturnUspsShippingLabelGet implements IConvertible
{
String? rmaNumber;
String? serviceType;
ReturnUspsShippingLabelGet({this.rmaNumber,this.serviceType});
ReturnUspsShippingLabelGet.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
rmaNumber = json['rmaNumber'];
serviceType = json['serviceType'];
return this;
}
Map<String, dynamic> toJson() => {
'rmaNumber': rmaNumber,
'serviceType': serviceType
};
getTypeName() => "ReturnUspsShippingLabelGet";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'extensions.avon.ca', types: <String, TypeInfo> {
'ReturnUspsShippingLabelGet': TypeInfo(TypeOf.Class, create:() => ReturnUspsShippingLabelGet()),
});
Dart ReturnUspsShippingLabelGet 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /returns/{RMANumber}/usps-label HTTP/1.1 Host: extensions.avon.ca Accept: application/json