Пример #1
0
 public SpreedlyResponse<Invoice> PayInvoice(Invoice invoice, Payment payment)
 {
     var urlSegment = string.Format("invoices/{0}/pay.xml", invoice.Token);
     return _client.Put<Invoice>(urlSegment, payment);
 }
 private void SetCreateInvoiceStatusAndResult(SpreedlyStatus status, Invoice invoice)
 {
     _paymentsClient.CreateInvoice(null).ReturnsForAnyArgs(new SpreedlyResponse<Invoice>
                                                               {
                                                                   Status = status,
                                                                   Entity = invoice
                                                               });
 }
Пример #3
0
 public SpreedlyResponse<Invoice> CreateInvoice(Invoice invoice)
 {
     return _client.Post<Invoice>("invoices.xml", invoice);
 }