Permalink
Browse files
Added requests and handlers for fetching pending transactions, fetchi…
…ng bank accounts, and updated transaction UI to show yellow color for pending transactions
- Loading branch information
Showing
with
103 additions
and 7 deletions.
- +49 −4 SynchronyFinancial/SynchronyFinancial WatchKit Extension/FetchData.swift
- +2 −1 SynchronyFinancial/SynchronyFinancial WatchKit Extension/TransactionsInterfaceController.swift
- +7 −1 SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj
- +22 −0 SynchronyFinancial/SynchronyFinancial/BankAcct.swift
- +23 −1 SynchronyFinancial/SynchronyFinancial/Transaction.swift
@@ -0,0 +1,22 @@ | ||
// | ||
// Banks.swift | ||
// SynchronyFinancial | ||
// | ||
// Created by Rahul Kantesaria on 4/2/19. | ||
// Copyright © 2019 Alan Maynard. All rights reserved. | ||
// | ||
import Foundation | ||
|
||
public enum AccountType: Int { | ||
case checkings = 0 | ||
case savings = 1 | ||
} | ||
class BankAcct: NSObject { | ||
var bankAcctId: String | ||
var acctType: AccountType | ||
init(bankAcctId: String, acctType: AccountType) { | ||
self.bankAcctId = bankAcctId | ||
self.acctType = acctType | ||
} | ||
} |