/* Options: Date: 2026-11-08 12:08:09 SwiftVersion: 5.0 Version: 5.140 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://devapi.billhighway.com //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: AnywhereInPersonDepositRq.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/anywhere/inperson/deposit", "POST") public class AnywhereInPersonDepositRq : AnywhereInPersonDepositRq, IReturn { public typealias Return = AnywherePaymentRs required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public class AnywherePaymentRs : AnywherePaymentRs { required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public class AnywhereDonorInfo : Codable { public var name:String? public var email:String? public var addressLine1:String? public var addressLine2:String? public var city:String? public var state:String? public var postalCode:String? required public init(){} } public class AnywhereInPersonDepositRq : AnywhereInPersonRequestBase { public var chapBillCatId:Int? public var chapAcctId:Int? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case chapBillCatId case chapAcctId } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) chapBillCatId = try container.decodeIfPresent(Int.self, forKey: .chapBillCatId) chapAcctId = try container.decodeIfPresent(Int.self, forKey: .chapAcctId) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if chapBillCatId != nil { try container.encode(chapBillCatId, forKey: .chapBillCatId) } if chapAcctId != nil { try container.encode(chapAcctId, forKey: .chapAcctId) } } } public class AnywherePaymentRs : Codable { public var lastFour:String? public var confirmationNumber:String? public var cardType:String? public var nameOnCard:String? public var amount:Int? public var notes:String? public var success:Bool? public var isDuplicate:Bool? public var message:String? public var paymentConfirmationNumber:Int? required public init(){} } public class AnywhereInPersonRequestBase : AnywherePaymentRequestBase { public var encryptedPaymentData:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case encryptedPaymentData } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) encryptedPaymentData = try container.decodeIfPresent(String.self, forKey: .encryptedPaymentData) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if encryptedPaymentData != nil { try container.encode(encryptedPaymentData, forKey: .encryptedPaymentData) } } } public class AnywherePaymentRequestBase : Codable { public var userId:Int? public var chapId:Int? public var memo:String? public var receiptEmail:String? public var amount:Int? public var loggedInUserId:Int? public var donorInfo:AnywhereDonorInfo? required public init(){} }