/* Options: Date: 2025-05-05 00:11:19 SwiftVersion: 6.0 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: AppGetFormCompletions.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/portal/form-completions", "GET") public class AppGetFormCompletions : ListRequest, IReturn { public typealias Return = ListResponse public var accountId:String? public var customerId:String? public var emailSubjectFilter:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case accountId case customerId case emailSubjectFilter } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) accountId = try container.decodeIfPresent(String.self, forKey: .accountId) customerId = try container.decodeIfPresent(String.self, forKey: .customerId) emailSubjectFilter = try container.decodeIfPresent(String.self, forKey: .emailSubjectFilter) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if accountId != nil { try container.encode(accountId, forKey: .accountId) } if customerId != nil { try container.encode(customerId, forKey: .customerId) } if emailSubjectFilter != nil { try container.encode(emailSubjectFilter, forKey: .emailSubjectFilter) } } } public class ListResponse : Codable { /** * The items */ // @ApiMember(Description="The items") public var items:[HostedSuiteCompletedForm]? /** * The total number of items */ // @ApiMember(Description="The total number of items") public var totalCount:Int? /** * The total number of pages */ // @ApiMember(Description="The total number of pages") public var totalPages:Int? /** * Are there more pages of items? Used with simplified paging */ // @ApiMember(Description="Are there more pages of items? Used with simplified paging") public var hasMorePages:Bool? required public init(){} } public enum SortOrders : String, Codable { case Ascend case Descend } public class ListRequest : IGet, Codable { /** * The page of data to retrieve */ // @ApiMember(Description="The page of data to retrieve") public var page:Int? /** * If you want all objects to be returned. This should be used with care */ // @ApiMember(Description="If you want all objects to be returned. This should be used with care") public var all:Bool? /** * The number per page to retrieve */ // @ApiMember(Description="The number per page to retrieve") public var countPerPage:Int? /** * Specific IDs */ // @ApiMember(Description="Specific IDs") public var specificIds:[String]? /** * Specify a sort field */ // @ApiMember(Description="Specify a sort field") public var sortField:String? /** * Specify a sort order */ // @ApiMember(Description="Specify a sort order") public var sortOrder:SortOrders? /** * Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array */ // @ApiMember(Description="Disables total / page counts - improves performance. Returns only data. If there is no more data, Items will be empty array") public var simplifiedPaging:Bool? required public init(){} } public class HostedSuiteCompletedForm : Codable { public var id:String? public var name:String? public var dateCreated:String? public var dateCompleted:String? public var formId:String? public var formName:String? public var clientId:String? public var clientName:String? public var contactId:String? public var contactName:String? public var contactsIds:[String]? public var contactsNames:[String]? public var emailSubject:String? public var callerNumber:String? public var fields:[HostedSuiteCompletedFormField]? required public init(){} } public class HostedSuiteCompletedFormField : Codable { public var name:String? public var values:[String]? required public init(){} }