コード例 #1
0
        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));
        }
コード例 #2
0
        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));
        }
コード例 #3
0
        public CancelDirectDebitResponse CancelDirectDebit(CancelDirectDebitRequest payload)
        {
            var    _client = new RestActions(_contentRootPath);
            string url     = _configSettingManager.ArmBaseUrl + "/Payment/CancelDirectDebit";

            return(_client.CallRestAction <CancelDirectDebitResponse, CancelDirectDebitRequest>(payload, url));
        }
コード例 #4
0
        public ArmOneAuthTokenResponse ArmOneAuthToken(ArmOneAuthTokenRequest payload)
        {
            var    _client = new RestActions(_contentRootPath);
            string url     = _configSettingManager.ArmOne + "/OAuth/Token";

            return(_client.CallArmOneRestTokenAction <ArmOneAuthTokenResponse, ArmOneAuthTokenRequest>(payload, url));
        }
コード例 #5
0
        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));
        }
コード例 #6
0
        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));
        }
コード例 #7
0
        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));
        }
コード例 #8
0
        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));
        }
コード例 #9
0
        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));
        }
コード例 #10
0
        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));
        }
コード例 #11
0
        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));
        }
コード例 #12
0
        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));
        }
コード例 #13
0
        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));
        }