mirror of
https://github.com/bitwarden/server
synced 2025-12-29 14:43:39 +00:00
Turn on file scoped namespaces (#2225)
This commit is contained in:
@@ -1,28 +1,27 @@
|
||||
namespace Bit.Billing.Models
|
||||
namespace Bit.Billing.Models;
|
||||
|
||||
public class BitPayEventModel
|
||||
{
|
||||
public class BitPayEventModel
|
||||
public EventModel Event { get; set; }
|
||||
public InvoiceDataModel Data { get; set; }
|
||||
|
||||
public class EventModel
|
||||
{
|
||||
public EventModel Event { get; set; }
|
||||
public InvoiceDataModel Data { get; set; }
|
||||
public int Code { get; set; }
|
||||
public string Name { 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; }
|
||||
}
|
||||
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; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Bit.Billing.Models
|
||||
namespace Bit.Billing.Models;
|
||||
|
||||
public class FreshdeskWebhookModel
|
||||
{
|
||||
public class FreshdeskWebhookModel
|
||||
{
|
||||
[JsonPropertyName("ticket_id")]
|
||||
public string TicketId { get; set; }
|
||||
[JsonPropertyName("ticket_id")]
|
||||
public string TicketId { get; set; }
|
||||
|
||||
[JsonPropertyName("ticket_contact_email")]
|
||||
public string TicketContactEmail { get; set; }
|
||||
[JsonPropertyName("ticket_contact_email")]
|
||||
public string TicketContactEmail { get; set; }
|
||||
|
||||
[JsonPropertyName("ticket_tags")]
|
||||
public string TicketTags { get; set; }
|
||||
}
|
||||
[JsonPropertyName("ticket_tags")]
|
||||
public string TicketTags { get; set; }
|
||||
}
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace Bit.Billing.Models
|
||||
namespace Bit.Billing.Models;
|
||||
|
||||
public class LoginModel
|
||||
{
|
||||
public class LoginModel
|
||||
{
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; }
|
||||
}
|
||||
[Required]
|
||||
[EmailAddress]
|
||||
public string Email { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user