/* Options: Date: 2025-12-06 07:06:11 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AdjustmentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Adjustment implements IConvertible { int? ID; DateTime? AdjustmentDate; String? Agent; String? Reason; double? Amount; String? Approved; String? AdjType; String? Income; String? Paid; String? BalanceForward; String? BalanceDate; Adjustment({this.ID,this.AdjustmentDate,this.Agent,this.Reason,this.Amount,this.Approved,this.AdjType,this.Income,this.Paid,this.BalanceForward,this.BalanceDate}); Adjustment.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ID = json['ID']; AdjustmentDate = JsonConverters.fromJson(json['AdjustmentDate'],'DateTime',context!); Agent = json['Agent']; Reason = json['Reason']; Amount = JsonConverters.toDouble(json['Amount']); Approved = json['Approved']; AdjType = json['AdjType']; Income = json['Income']; Paid = json['Paid']; BalanceForward = json['BalanceForward']; BalanceDate = json['BalanceDate']; return this; } Map toJson() => { 'ID': ID, 'AdjustmentDate': JsonConverters.toJson(AdjustmentDate,'DateTime',context!), 'Agent': Agent, 'Reason': Reason, 'Amount': Amount, 'Approved': Approved, 'AdjType': AdjType, 'Income': Income, 'Paid': Paid, 'BalanceForward': BalanceForward, 'BalanceDate': BalanceDate }; getTypeName() => "Adjustment"; TypeContext? context = _ctx; } class AdjustmentResponse implements IConvertible { ResponseStatus? ResponseStatus; List? Adjustment = []; AdjustmentResponse({this.ResponseStatus,this.Adjustment}); AdjustmentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); Adjustment = JsonConverters.fromJson(json['Adjustment'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'Adjustment': JsonConverters.toJson(Adjustment,'List',context!) }; getTypeName() => "AdjustmentResponse"; TypeContext? context = _ctx; } // @Route("/v1/Adjustment", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Adjustment/{ID}", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Adjustment/DateRange/{ParamStartDate}/{ParamEndDate}", "GET,POST,PUT,DELETE,OPTIONS") // @Route("/v1/Adjustment/DateRange/{ParamStartDate}/{ParamEndDate}/{AgentID}", "GET,POST,PUT,DELETE,OPTIONS") class AdjustmentRequest implements IReturn, IConvertible, IGet { List? Adjustment = []; int? AgentID; DateTime? ParamStartDate; DateTime? ParamEndDate; AdjustmentRequest({this.Adjustment,this.AgentID,this.ParamStartDate,this.ParamEndDate}); AdjustmentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Adjustment = JsonConverters.fromJson(json['Adjustment'],'List',context!); AgentID = json['AgentID']; ParamStartDate = JsonConverters.fromJson(json['ParamStartDate'],'DateTime',context!); ParamEndDate = JsonConverters.fromJson(json['ParamEndDate'],'DateTime',context!); return this; } Map toJson() => { 'Adjustment': JsonConverters.toJson(Adjustment,'List',context!), 'AgentID': AgentID, 'ParamStartDate': JsonConverters.toJson(ParamStartDate,'DateTime',context!), 'ParamEndDate': JsonConverters.toJson(ParamEndDate,'DateTime',context!) }; createResponse() => AdjustmentResponse(); getResponseTypeName() => "AdjustmentResponse"; getTypeName() => "AdjustmentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'Adjustment': TypeInfo(TypeOf.Class, create:() => Adjustment()), 'AdjustmentResponse': TypeInfo(TypeOf.Class, create:() => AdjustmentResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AdjustmentRequest': TypeInfo(TypeOf.Class, create:() => AdjustmentRequest()), });