Skip to content
Permalink
4aa68412cc
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
38 lines (35 sloc) 1.15 KB
//
// Account.swift
//
//
// Created by Alan Maynard on 1/23/19.
//
import Foundation
class Account: NSObject {
var accountAlias: String
var creditLimit: Double
var last4: String
//var transactions: [Transaction]
var paymentDueDate: Date
//var cycleEndDate: Date
var curBalance: Double
var availCredit: Double
//var balance: Double
var minPayDue: Double
var statementBal: Double
var accountName: String
init(_ accountAlias: String, _ creditLimit: Double, _ last4: String, _ paymentDueDate: Date, _ curBalance: Double, _ availCredit: Double, _ minPayDue: Double, _ statementBal: Double, _ accountName: String) {
self.accountAlias = accountAlias
self.creditLimit = creditLimit
self.last4 = last4
//self.transactions = transactions
//self.balance = transactions.map { $0.amount }.reduce(0.0, +)
self.paymentDueDate = paymentDueDate
//self.cycleEndDate = cycleEndDate
self.curBalance = curBalance
self.minPayDue = minPayDue
self.availCredit = availCredit
self.statementBal = statementBal
self.accountName = accountName
}
}