public static AccountAcquisition Get(string accountCode)
        {
            var accountAcquisition = new AccountAcquisition();

            var statusCode = Client.Instance.PerformRequest(Client.HttpRequestMethod.Get,
                                                            AccountAcquisitionUrl(accountCode),
                                                            accountAcquisition.ReadXml);

            return(statusCode == HttpStatusCode.NotFound ? null : accountAcquisition);
        }
Beispiel #2
0
 /// <summary>
 /// Remove an account's acquisition data.
 /// </summary>
 public void DeleteAccountAcquisition()
 {
     Client.Instance.PerformRequest(Client.HttpRequestMethod.Delete,
                                    UrlPrefix + Uri.EscapeDataString(AccountCode) + "/acquisition");
     _accountAcquisition = null;
 }
 public bool Equals(AccountAcquisition accountAcquisition)
 {
     return(AccountCode == accountAcquisition.AccountCode);
 }