/* Options: Date: 2024-12-15 19:31:31 SwiftVersion: 5.0 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: DeleteAdjustmentRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/packages/{SalaryPackageId}/adjustments/{Id}", "DELETE") public class DeleteAdjustmentRequest : DeleteOperationTenanted, IReturn { public typealias Return = DeleteAdjustmentResponse public var salaryPackageId:String? public var id:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case salaryPackageId case id } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) salaryPackageId = try container.decodeIfPresent(String.self, forKey: .salaryPackageId) id = try container.decodeIfPresent(String.self, forKey: .id) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if salaryPackageId != nil { try container.encode(salaryPackageId, forKey: .salaryPackageId) } if id != nil { try container.encode(id, forKey: .id) } } } public class DeleteAdjustmentResponse : Codable { public var responseStatus:ResponseStatus? required public init(){} } public protocol ITenantedRequest { var organisationId:String? { get set } } public class DeleteOperationUnTenanted : IDelete, Codable { required public init(){} } public class DeleteOperationTenanted : DeleteOperationUnTenanted, ITenantedRequest { public var organisationId:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case organisationId } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) organisationId = try container.decodeIfPresent(String.self, forKey: .organisationId) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if organisationId != nil { try container.encode(organisationId, forKey: .organisationId) } } }