1
0
mirror of https://github.com/bitwarden/server synced 2025-12-25 04:33:26 +00:00

bitpay ipn for processing credits

This commit is contained in:
Kyle Spearrin
2019-02-22 08:49:11 -05:00
parent c0e9d95538
commit 4c84eeca5b
4 changed files with 152 additions and 11 deletions

View File

@@ -0,0 +1,28 @@
namespace Bit.Billing.Models
{
public class BitPayEventModel
{
public EventModel Event { get; set; }
public InvoiceDataModel Data { get; set; }
public class EventModel
{
public int Code { get; set; }
public string Name { get; set; }
}
public class InvoiceDataModel
{
public string Id { get; set; }
public string Url { get; set; }
public string Status { get; set; }
public string Currency { get; set; }
public decimal Price { get; set; }
public string PosData { get; set; }
public bool ExceptionStatus { get; set; }
public long CurrentTime { get; set; }
public long AmountPaid { get; set; }
public string TransactionCurrency { get; set; }
}
}
}