/* Options: Date: 2025-05-05 01:39:50 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: NewBillable.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; /** * Report/create a new billable */ // @Route("/billables", "POST") // @Api(Description="Report/create a new billable") class NewBillable implements IReturnVoid, IPost, IConvertible { /** * The account to associate the billable with */ // @ApiMember(Description="The account to associate the billable with") String? accountId; /** * The customer to associate the billable with */ // @ApiMember(Description="The customer to associate the billable with") String? customerId; /** * The session ID to associate the billable with. You must specify either this or (AccountId + CustomerID) */ // @ApiMember(Description="The session ID to associate the billable with. You must specify either this or (AccountId + CustomerID)") String? sessionId; /** * The call SID to report */ // @ApiMember(Description="The call SID to report") String? callSid; NewBillable({this.accountId,this.customerId,this.sessionId,this.callSid}); NewBillable.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; customerId = json['customerId']; sessionId = json['sessionId']; callSid = json['callSid']; return this; } Map toJson() => { 'accountId': accountId, 'customerId': customerId, 'sessionId': sessionId, 'callSid': callSid }; createResponse() {} getTypeName() => "NewBillable"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'NewBillable': TypeInfo(TypeOf.Class, create:() => NewBillable()), });