/* Options: Date: 2026-11-08 12:03:45 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: IvrAchPaymentRequest.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/ivr/payment/ach", "POST") public class IvrAchPaymentRequest : IvrAchPaymentRequest, IReturn { public typealias Return = IvrAchPaymentResponse public var paymentChoice:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case paymentChoice } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) paymentChoice = try container.decodeIfPresent(String.self, forKey: .paymentChoice) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if paymentChoice != nil { try container.encode(paymentChoice, forKey: .paymentChoice) } } } public class IvrAchPaymentResponse : IvrAchPaymentResponse { 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 IvrAchPaymentRequest : Codable { public var userID:Int? public var paymentChoice:String? public var routingNumber:String? public var bankAccountNumber:String? public var otherAmount:Double? required public init(){} } public protocol IHaveErrorField { var isError:Bool? { get set } } public protocol IHaveErrorField { var isError:Bool? { get set } } public class IvrAchPaymentResponse : MemberPaymentResult { 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 MemberPaymentResult : IHaveErrorField, Codable { public var transactionId:String? public var errorCode:String? public var errorMessage:String? public var gatewayConfirmationNumber:String? public var isError:Bool? required public init(){} }