Esempio n. 1
0
        /// <summary>
        /// Get ACHBankAccount
        /// </summary>
        /// <param name="ACHBankAccount">ACHBankAccount</param>
        /// <returns>ACHBankAccount</returns>
        public ACHBankAccounts get(ACHBankAccounts account)
        {
            account.setRequiredFields(new List <string> {
                CustomerVaultConstants.profileId,
                CustomerVaultConstants.id
            });
            account.checkRequiredFields();
            Request request = new Request(
                method: RequestType.GET,
                uri: this.prepareURI("/profiles/" + account.profileId() + "/achbankaccounts/" + account.id())
                );

            dynamic response = this.client.processRequest(request);

            ACHBankAccounts returnVal = new ACHBankAccounts(response);

            returnVal.profileId(account.profileId());
            return(returnVal);
        }