| Requires any of the roles: | Client, Admin, Partner |
| PUT | /invoice_files/{Id} |
|---|
import 'package:servicestack/servicestack.dart';
class InvoiceFilesEditResponse implements IConvertible
{
// @DataMember(Order=1)
int? Id;
// @DataMember(Order=2)
int? TenantsId;
// @DataMember(Order=3)
int? DebtsId;
// @DataMember(Order=4)
String? InvoiceUrl;
// @DataMember(Order=6)
ResponseStatus? ResponseStatus;
InvoiceFilesEditResponse({this.Id,this.TenantsId,this.DebtsId,this.InvoiceUrl,this.ResponseStatus});
InvoiceFilesEditResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
TenantsId = json['TenantsId'];
DebtsId = json['DebtsId'];
InvoiceUrl = json['InvoiceUrl'];
ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'TenantsId': TenantsId,
'DebtsId': DebtsId,
'InvoiceUrl': InvoiceUrl,
'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!)
};
getTypeName() => "InvoiceFilesEditResponse";
TypeContext? context = _ctx;
}
// @DataContract
class InvoiceFilesEdit implements IConvertible
{
// @DataMember(Order=1)
// @Validate(Validator="NotNull")
int? Id;
// @DataMember(Order=2)
// @Validate(Validator="NotNull")
int? TenantsId;
// @DataMember(Order=3)
// @Validate(Validator="NotNull")
int? DebtsId;
// @DataMember(Order=4)
// @Validate(Validator="NotNull")
String? InvoiceUrl;
InvoiceFilesEdit({this.Id,this.TenantsId,this.DebtsId,this.InvoiceUrl});
InvoiceFilesEdit.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Id = json['Id'];
TenantsId = json['TenantsId'];
DebtsId = json['DebtsId'];
InvoiceUrl = json['InvoiceUrl'];
return this;
}
Map<String, dynamic> toJson() => {
'Id': Id,
'TenantsId': TenantsId,
'DebtsId': DebtsId,
'InvoiceUrl': InvoiceUrl
};
getTypeName() => "InvoiceFilesEdit";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'duengageapi.uat.scadsoftware.com', types: <String, TypeInfo> {
'InvoiceFilesEditResponse': TypeInfo(TypeOf.Class, create:() => InvoiceFilesEditResponse()),
'InvoiceFilesEdit': TypeInfo(TypeOf.Class, create:() => InvoiceFilesEdit()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /invoice_files/{Id} HTTP/1.1
Host: duengageapi.uat.scadsoftware.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
TenantsId: 0,
DebtsId: 0,
InvoiceUrl: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Id: 0,
TenantsId: 0,
DebtsId: 0,
InvoiceUrl: String,
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
}
}