/* Options: Date: 2026-11-08 12:02:33 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: StoredAccountDetail.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack // @Route("/api/SalesForce/StoredAccountDetail", "POST, PUT, DELETE") // @Route("/members/storedaccountdetail", "POST, PUT, DELETE") public class StoredAccountDetail : BaseClass, IReturn { public typealias Return = StoredAccountDetail public var storedAccountId:Int? public var nameOnCard:String? public var clientId:Int? public var groupId:String? public var clientUserId:String? public var bhUserId:Int? public var cardNumber:String? public var expMonth:Int? public var expYear:Int? public var cvv:String? public var cardType:String? public var billingAddress:String? public var billingCity:String? public var billingState:String? public var billingPostalCode:String? public var billingCountry:String? public var errorCode:String? public var message:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case storedAccountId case nameOnCard case clientId case groupId case clientUserId case bhUserId case cardNumber case expMonth case expYear case cvv case cardType case billingAddress case billingCity case billingState case billingPostalCode case billingCountry case errorCode case message } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) storedAccountId = try container.decodeIfPresent(Int.self, forKey: .storedAccountId) nameOnCard = try container.decodeIfPresent(String.self, forKey: .nameOnCard) clientId = try container.decodeIfPresent(Int.self, forKey: .clientId) groupId = try container.decodeIfPresent(String.self, forKey: .groupId) clientUserId = try container.decodeIfPresent(String.self, forKey: .clientUserId) bhUserId = try container.decodeIfPresent(Int.self, forKey: .bhUserId) cardNumber = try container.decodeIfPresent(String.self, forKey: .cardNumber) expMonth = try container.decodeIfPresent(Int.self, forKey: .expMonth) expYear = try container.decodeIfPresent(Int.self, forKey: .expYear) cvv = try container.decodeIfPresent(String.self, forKey: .cvv) cardType = try container.decodeIfPresent(String.self, forKey: .cardType) billingAddress = try container.decodeIfPresent(String.self, forKey: .billingAddress) billingCity = try container.decodeIfPresent(String.self, forKey: .billingCity) billingState = try container.decodeIfPresent(String.self, forKey: .billingState) billingPostalCode = try container.decodeIfPresent(String.self, forKey: .billingPostalCode) billingCountry = try container.decodeIfPresent(String.self, forKey: .billingCountry) errorCode = try container.decodeIfPresent(String.self, forKey: .errorCode) message = try container.decodeIfPresent(String.self, forKey: .message) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if storedAccountId != nil { try container.encode(storedAccountId, forKey: .storedAccountId) } if nameOnCard != nil { try container.encode(nameOnCard, forKey: .nameOnCard) } if clientId != nil { try container.encode(clientId, forKey: .clientId) } if groupId != nil { try container.encode(groupId, forKey: .groupId) } if clientUserId != nil { try container.encode(clientUserId, forKey: .clientUserId) } if bhUserId != nil { try container.encode(bhUserId, forKey: .bhUserId) } if cardNumber != nil { try container.encode(cardNumber, forKey: .cardNumber) } if expMonth != nil { try container.encode(expMonth, forKey: .expMonth) } if expYear != nil { try container.encode(expYear, forKey: .expYear) } if cvv != nil { try container.encode(cvv, forKey: .cvv) } if cardType != nil { try container.encode(cardType, forKey: .cardType) } if billingAddress != nil { try container.encode(billingAddress, forKey: .billingAddress) } if billingCity != nil { try container.encode(billingCity, forKey: .billingCity) } if billingState != nil { try container.encode(billingState, forKey: .billingState) } if billingPostalCode != nil { try container.encode(billingPostalCode, forKey: .billingPostalCode) } if billingCountry != nil { try container.encode(billingCountry, forKey: .billingCountry) } if errorCode != nil { try container.encode(errorCode, forKey: .errorCode) } if message != nil { try container.encode(message, forKey: .message) } } } public class BaseClass : Codable { public var className:String? public var uniqueId:String? public var createdDateTime:Date? public var version:Int? required public init(){} }