// // ProfileChangePhoneNumberService.swift // GME Remit // // Created by Jeongbae Kong on 21/01/2020. //Copyright © 2020 Gobal Money Express Co. Ltd. All rights reserved. // import Foundation class ChangePersonalInformationService: ChangePersonalInformationServiceType { func verifyPasswordForChangePersonalInformation( model: ChangePersonalInformationModel, target: String, success: @escaping ((ChangePersonalInformationModel?) -> Void), failure: @escaping ((Error) -> Void) ) { APIRouter.profileCheckPassword(model: model, target: target).json(success: success, failure: failure) } func profileValidateOTP( OTPPassword: String, success: @escaping (() -> Void), failure: @escaping ((Error) -> Void) ) { APIRouter.profileValidationOTP(OTPPassword: OTPPassword).json(success: success, failure: failure) } func profileChangeInformation( newValue: String, target: String, success: @escaping ((ChangePersonalInformationModel?) -> Void), failure: @escaping ((Error) -> Void) ) { APIRouter.profileChangeInformation(newValue: newValue, target: target) .json(success: success, failure: failure) } }