public static RecurlyLineItem[] GetCredits(string accountCode)
        {
            RecurlyLineItemList creditList = new RecurlyLineItemList();

            HttpStatusCode statusCode = RecurlyClient.PerformRequest(RecurlyClient.HttpRequestMethod.Get,
                                                                     RecurlyCredit.CreditsUrl(accountCode),
                                                                     new RecurlyClient.ReadXmlDelegate(creditList.ReadXml));

            if (statusCode == HttpStatusCode.NotFound)
            {
                return(null);
            }

            return(creditList.ToArray());
        }
Ejemplo n.º 2
0
 internal RecurlyInvoice()
 {
     LineItems = new RecurlyLineItemList();
     Payments  = new RecurlyTransactionList();
 }