You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
1.5 KiB

  1. //
  2. // RechargeModel.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 2019/10/15.
  6. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. struct RechargeModel {
  9. let paymentType: String?
  10. let fintechUseNo: String?
  11. let kftcAccountId: String?
  12. let bankName: String?
  13. let accountNumber: String?
  14. let type: String
  15. let chargeType: String
  16. let cardName: String
  17. let mobile: String
  18. var productPrice: String?
  19. var useBalancePrice: String?
  20. var receiptID: String?
  21. var orderNo: String?
  22. var password: String?
  23. let isUseBiometric: Bool?
  24. init(
  25. paymentType: String,
  26. fintechUseNo: String,
  27. kftcAccountId: String,
  28. bankName: String,
  29. accountNumber: String,
  30. type: String,
  31. chargeType: String,
  32. cardName: String,
  33. mobile: String,
  34. price: String,
  35. isUseBiometric: Bool
  36. ) {
  37. self.paymentType = paymentType
  38. self.fintechUseNo = fintechUseNo
  39. self.kftcAccountId = kftcAccountId
  40. self.bankName = bankName
  41. self.type = type
  42. self.accountNumber = accountNumber
  43. self.chargeType = chargeType
  44. self.cardName = cardName
  45. self.mobile = mobile
  46. self.productPrice = price
  47. self.useBalancePrice = price
  48. self.isUseBiometric = isUseBiometric
  49. }
  50. mutating func addPassword(_ password: String) {
  51. self.password = password
  52. }
  53. }
  54. extension RechargeModel: OTPProtocol {
  55. var otpAmount: String? {
  56. return productPrice
  57. }
  58. var otpAccountID: String? {
  59. return kftcAccountId
  60. }
  61. }