/* Options: Date: 2026-06-14 21:42:57 SwiftVersion: 5.0 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://qp-microservices-booster.richemont.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: GetBrandPrivacyPolicy.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/warranty/v1/GetBrandPrivacyPolicy", "POST") public class GetBrandPrivacyPolicy : BaseRequest, IReturn { public typealias Return = String public var countryId:String public var languageId:String public var brandTrigram:String public var posId:Int? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case countryId case languageId case brandTrigram case posId } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) countryId = try container.decodeIfPresent(String.self, forKey: .countryId) languageId = try container.decodeIfPresent(String.self, forKey: .languageId) brandTrigram = try container.decodeIfPresent(String.self, forKey: .brandTrigram) posId = try container.decodeIfPresent(Int.self, forKey: .posId) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if countryId != nil { try container.encode(countryId, forKey: .countryId) } if languageId != nil { try container.encode(languageId, forKey: .languageId) } if brandTrigram != nil { try container.encode(brandTrigram, forKey: .brandTrigram) } if posId != nil { try container.encode(posId, forKey: .posId) } } } public class BaseRequest : IRequest, Codable { public var sid:String public var app:String public var _os:String public var _appVersion:String public var _searchMethod:String required public init(){} } public protocol IRequest { var sid:String { get set } var app:String { get set } }