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.

36 lines
917 B

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. //
  2. // ExchangeRateRequestModel.swift
  3. // GME Remit
  4. //
  5. // Created by InKwon James Kim on 12/08/2019.
  6. // Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved.
  7. //
  8. struct ExchangeRateRequestModel: RequestModelType {
  9. let senderAmount: String
  10. let senderCurrency: String
  11. let senderCountryID: String
  12. let recipientAmount: String
  13. let recipientCurrency: String
  14. let recipientCountryID: String
  15. let recipientCountry: String
  16. let serviceType: String
  17. let calcBy: String
  18. let userId: String
  19. func serialize() -> [String : String] {
  20. return [
  21. "cAmount": senderAmount,
  22. "sCurrency": senderCurrency,
  23. "pAmount": recipientAmount,
  24. "pCurrency": recipientCurrency,
  25. "pCountry": recipientCountryID,
  26. "serviceType": serviceType,
  27. "calcBy": calcBy,
  28. "sCountry": senderCountryID,
  29. "pCountryName": recipientCountry,
  30. "userId": userId
  31. ]
  32. }
  33. }