public ArmOneCustomerDetailsResponse GetArmOneCustomerDetails(ArmOneCustomerDetailsRequest payload) { string url = _configSettingManager.ArmOne + $@"/ARMONE/GetCustomerDetails/?Id={payload.Id}&Channel={payload.Channel}"; var _client = new RestActions(_contentRootPath); return(_client.GetArmOneDetails <ArmOneCustomerDetailsResponse>(url)); }
public ArmOneValidateCookieResponse ArmOneValidateCookie(ArmOneValidateCookieRequest payload, string token, string session) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmOne + "/ARMONE/ValidateCookie"; return(_client.ArmOneValidateCallAction <ArmOneValidateCookieResponse, ArmOneValidateCookieRequest>(payload, url, token, session)); }
public CancelDirectDebitResponse CancelDirectDebit(CancelDirectDebitRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmBaseUrl + "/Payment/CancelDirectDebit"; return(_client.CallRestAction <CancelDirectDebitResponse, CancelDirectDebitRequest>(payload, url)); }
public ArmOneAuthTokenResponse ArmOneAuthToken(ArmOneAuthTokenRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmOne + "/OAuth/Token"; return(_client.CallArmOneRestTokenAction <ArmOneAuthTokenResponse, ArmOneAuthTokenRequest>(payload, url)); }
public ArmOnePasswordResetResponse ArmOnePasswordReset(ArmOnePasswordResetRequest payload) { ClientPortalUtilities generate = new ClientPortalUtilities(_configSettingManager); var token = generate.ARMOneToken(); var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmOne + "/ARMONE/ResetPassword"; return(_client.CallArmOneRestAction <ArmOnePasswordResetResponse, ArmOnePasswordResetRequest>(payload, url, token)); }
public AddSecurityQuestionResponse AddSecurityQuestion(AddSecurityQuestionRequest payload) { string url = _configSettingManager.ArmBaseUrl + "/Client/AddSecurityQuestion"; var encryptedValue = new SecureCredentials(); var _client = new RestActions(_contentRootPath); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <AddSecurityQuestionResponse, AddSecurityQuestionRequest>(payload, url)); }
public SalesNewCustomerResponse AddNewCustomerStageTwo(SalesNewCustomerRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmBaseUrl + "/Sale/NewCustomer"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <SalesNewCustomerResponse, SalesNewCustomerRequest>(payload, url)); }
public YieldHistoryResponse GetFundYieldHistory(YieldHistoryRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmFundBaseUrl + "/Fund/YieldHistory"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <YieldHistoryResponse, YieldHistoryRequest>(payload, url)); }
public SubAccountsResponse SubAccounts(SubAccountsRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmBaseUrl + "/Client/SubAccounts"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <SubAccountsResponse, SubAccountsRequest>(payload, url)); }
public TotalBalanceResponse GetTotalBalance(TotalBalanceRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmBaseUrl + "/Portfolio/TotalBalance"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <TotalBalanceResponse, TotalBalanceRequest>(payload, url)); }
public RedemptionResponse SendRedemption(RedemptionRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmBaseUrl + "/SelfService/Redemption"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <RedemptionResponse, RedemptionRequest>(payload, url)); }
public AdditionalInvResponse AddSales(InvestmentRequest payload) { var _client = new RestActions(_contentRootPath); string url = _configSettingManager.ArmBaseUrl + "/Sale/Additional"; var encryptedValue = new SecureCredentials(); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <AdditionalInvResponse, InvestmentRequest>(payload, url)); }
public ChangePasswordResponse ChangePassword(ChangePasswordRequest payload) { string url = _configSettingManager.ArmOne + "/Client/ChangePassword"; var encryptedValue = new SecureCredentials(); var _client = new RestActions(_contentRootPath); payload.ServiceUsername = encryptedValue.DecryptCredentials(_configSettingManager.ArmServiceUsername); payload.ServicePassword = encryptedValue.DecryptCredentials(_configSettingManager.ArmServicePassword); return(_client.CallRestAction <ChangePasswordResponse, ChangePasswordRequest>(payload, url)); }