Permalink
Browse files
Merge pull request #16 from rrk12005/SWE-24-show-pending-transactions…
…-and-allow-cancel Swe 24 show pending transactions and allow cancel
- Loading branch information
Showing
with
130 additions
and 19 deletions.
- +41 −9 SynchronyFinancial/SynchronyFinancial WatchKit App/Base.lproj/Interface.storyboard
- +4 −1 SynchronyFinancial/SynchronyFinancial WatchKit Extension/AccountDetailsInterfaceController.swift
- +34 −0 SynchronyFinancial/SynchronyFinancial WatchKit Extension/CancellationInterfaceController.swift
- +36 −2 SynchronyFinancial/SynchronyFinancial WatchKit Extension/TransactionDetailsInterfaceController.swift
- +11 −6 SynchronyFinancial/SynchronyFinancial WatchKit Extension/TransactionsInterfaceController.swift
- +4 −1 SynchronyFinancial/SynchronyFinancial.xcodeproj/project.pbxproj
@@ -0,0 +1,34 @@ | ||
// | ||
// CancellationInterfaceController.swift | ||
// SynchronyFinancial WatchKit Extension | ||
// | ||
// Created by Alan Maynard on 4/8/19. | ||
// Copyright © 2019 Alan Maynard. All rights reserved. | ||
// | ||
import WatchKit | ||
import Foundation | ||
|
||
class CancellationInterfaceController: WKInterfaceController { | ||
@IBOutlet var confirmationLabel: WKInterfaceLabel! | ||
|
||
override func awake(withContext context: Any?) { | ||
super.awake(withContext: context) | ||
|
||
guard let data = context as? [String: String], let confirmation = data["cancellation_confirm"] else { | ||
NSLog("Error receiving context for payment cancellation") | ||
return | ||
} | ||
|
||
setTitle("Done") | ||
confirmationLabel.setText(confirmation) | ||
} | ||
|
||
override func willActivate() { | ||
super.willActivate() | ||
} | ||
|
||
override func didDeactivate() { | ||
super.didDeactivate() | ||
} | ||
} |