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.

40 lines
793 B

  1. //
  2. // AutoRefund.swift
  3. // GME Remit
  4. //
  5. // Created by Mac on 11/21/18.
  6. // Copyright © 2018 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. import Foundation
  9. import ObjectMapper
  10. class AutoRefund: Mappable {
  11. var currentBalance: String?
  12. var minAmount: String?
  13. var chargeAmount: String?
  14. required init?(map: Map) {}
  15. func mapping(map: Map) {
  16. chargeAmount <- map["RefundCharge"]
  17. minAmount <- map["MinimumAmount"]
  18. currentBalance <- map["CurrentBalance"]
  19. }
  20. }
  21. class AutoRefundContainer: Mappable {
  22. var errorCode: String?
  23. var message: String?
  24. var id: String?
  25. var data: AutoRefund?
  26. required init?(map: Map) {}
  27. func mapping(map: Map) {
  28. errorCode <- map["ErrorCode"]
  29. message <- map["Msg"]
  30. id <- map["Id"]
  31. data <- map["Data"]
  32. }
  33. }