|
@ -9,8 +9,23 @@ |
|
|
import UIKit |
|
|
import UIKit |
|
|
|
|
|
|
|
|
class AutoRefundsViewController: UIViewController { |
|
|
class AutoRefundsViewController: UIViewController { |
|
|
|
|
|
|
|
|
|
|
|
struct StringConstants { |
|
|
|
|
|
static let headerTitleText = "HOW MUCH WOULD YOU LIKE TO REFUND?" |
|
|
|
|
|
static let availableBalanceTitleText = "AVAILABLE BALANCE : " |
|
|
|
|
|
static let refundChargeTitleTxty = "PRE REFUND BANK CHARGE : " |
|
|
|
|
|
static let navigationTitle = "Auto Refund " |
|
|
|
|
|
static let yourRefundText = "You Refund" |
|
|
|
|
|
static let refundButtonText = "Refund" |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@IBOutlet weak var backgroundView: UIView! |
|
|
@IBOutlet weak var backgroundView: UIView! |
|
|
@IBOutlet weak var countryBackgroundView: UIView! |
|
|
@IBOutlet weak var countryBackgroundView: UIView! |
|
|
|
|
|
@IBOutlet weak var availableBalanceTitleLabel: UILabel! |
|
|
|
|
|
@IBOutlet weak var refundChargeTitleLabel: UILabel! |
|
|
|
|
|
@IBOutlet weak var yourRefundLabel: UILabel! |
|
|
|
|
|
@IBOutlet weak var refundButton: UIButton! |
|
|
|
|
|
|
|
|
@IBOutlet weak var availableBalanceLabel: UILabel! |
|
|
@IBOutlet weak var availableBalanceLabel: UILabel! |
|
|
@IBOutlet weak var refundChargeLabel: UILabel! |
|
|
@IBOutlet weak var refundChargeLabel: UILabel! |
|
@ -38,11 +53,19 @@ class AutoRefundsViewController: UIViewController { |
|
|
self.backgroundView.layer.borderWidth = 0.5 |
|
|
self.backgroundView.layer.borderWidth = 0.5 |
|
|
self.backgroundView.layer.cornerRadius = 6 |
|
|
self.backgroundView.layer.cornerRadius = 6 |
|
|
self.countryBackgroundView.layer.cornerRadius = 6 |
|
|
self.countryBackgroundView.layer.cornerRadius = 6 |
|
|
|
|
|
configureText() |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private func configureText() { |
|
|
|
|
|
self.availableBalanceTitleLabel.text = StringConstants.availableBalanceTitleText |
|
|
|
|
|
self.refundChargeLabel.text = StringConstants.refundChargeTitleTxty |
|
|
|
|
|
self.yourRefundLabel.text = StringConstants.yourRefundText |
|
|
|
|
|
self.refundButton.setTitle(StringConstants.refundButtonText, for: UIControlState.normal) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) { |
|
|
override func viewWillAppear(_ animated: Bool) { |
|
|
super.viewWillAppear(animated) |
|
|
super.viewWillAppear(animated) |
|
|
self.navigationItem.title = "Auto Refund " |
|
|
|
|
|
|
|
|
self.navigationItem.title = StringConstants.navigationTitle |
|
|
fetchInfo() |
|
|
fetchInfo() |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|