public Invoice InvoicePendingCharges()
{
var i = new Invoice();
Client.Instance.PerformRequest(Client.HttpRequestMethod.Post,
UrlPrefix + Uri.EscapeUriString(AccountCode) + "/invoices",
i.ReadXml);
return i;
}
public void ListAdjustments() { Account acct = new Account(Factories.GetMockAccountName()); acct.Create(); Adjustment a = acct.CreateAdjustment("Charge", 5000, "USD", 1); a.Create(); a = acct.CreateAdjustment("Credit", -1492, "USD", 1); a.Create(); acct.InvoicePendingCharges(); AdjustmentList adjustments = acct.GetAdjustments(); Assert.IsTrue(adjustments.Count == 2); }