1
0
mirror of https://github.com/bitwarden/server synced 2025-12-23 19:53:40 +00:00

Add #nullable disable to billing code (#6054)

This commit is contained in:
Justin Baur
2025-07-08 11:46:24 -04:00
committed by GitHub
parent 50461518e7
commit 85b2a5bd94
101 changed files with 401 additions and 101 deletions

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using Bit.Core.Billing.Providers.Entities; using Bit.Core.Billing.Providers.Entities;
using CsvHelper.Configuration.Attributes; using CsvHelper.Configuration.Attributes;

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using Bit.Commercial.Core.Billing.Providers.Models; using Bit.Commercial.Core.Billing.Providers.Models;
using Bit.Core; using Bit.Core;
using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities;

View File

@@ -1,4 +1,7 @@
using System.Text.Json; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json;
using Bit.Admin.Billing.Models.ProcessStripeEvents; using Bit.Admin.Billing.Models.ProcessStripeEvents;
using Bit.Core.Settings; using Bit.Core.Settings;
using Bit.Core.Utilities; using Bit.Core.Utilities;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Admin.Billing.Models; namespace Bit.Admin.Billing.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
namespace Bit.Admin.Billing.Models.ProcessStripeEvents; namespace Bit.Admin.Billing.Models.ProcessStripeEvents;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Admin.Billing.Models.ProcessStripeEvents; namespace Bit.Admin.Billing.Models.ProcessStripeEvents;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Admin.Billing.Models.ProcessStripeEvents; namespace Bit.Admin.Billing.Models.ProcessStripeEvents;

View File

@@ -1,4 +1,7 @@
using System.Text; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text;
using System.Text.Json; using System.Text.Json;
using Bit.Admin.Enums; using Bit.Admin.Enums;
using Bit.Admin.Models; using Bit.Admin.Models;

View File

@@ -8,7 +8,7 @@
@if(!string.IsNullOrWhiteSpace(Model.TransactionId)) @if(!string.IsNullOrWhiteSpace(Model.TransactionId))
{ {
<div class="alert alert-success" role="alert"> <div class="alert alert-success" role="alert">
<p>Charged customer "@Model.Id" for @Model.Amount.Value.ToString("C").</p> <p>Charged customer "@Model.Id" for @Model.Amount!.Value.ToString("C").</p>
<strong>btTransactionId:</strong> @Model.TransactionId<br /> <strong>btTransactionId:</strong> @Model.TransactionId<br />
<strong>btPayPalTransactionId:</strong> @Model.PayPalTransactionId <strong>btPayPalTransactionId:</strong> @Model.PayPalTransactionId
</div> </div>

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities.Provider; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;
using Bit.Core.Billing.Extensions; using Bit.Core.Billing.Extensions;
using Bit.Core.Context; using Bit.Core.Context;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.Billing.Tax.Requests; using Bit.Core.Billing.Tax.Requests;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Repositories; using Bit.Core.Repositories;

View File

@@ -1,4 +1,7 @@
using Bit.Api.Models.Request.Organizations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.Models.Request.Organizations;
using Bit.Api.Models.Response; using Bit.Api.Models.Response;
using Bit.Api.Models.Response.Organizations; using Bit.Api.Models.Response.Organizations;
using Bit.Core.AdminConsole.Enums; using Bit.Core.AdminConsole.Enums;

View File

@@ -1,4 +1,7 @@
using Bit.Api.AdminConsole.Models.Request.Organizations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.AdminConsole.Models.Request.Organizations;
using Bit.Api.AdminConsole.Models.Response; using Bit.Api.AdminConsole.Models.Response;
using Bit.Api.AdminConsole.Models.Response.Organizations; using Bit.Api.AdminConsole.Models.Response.Organizations;
using Bit.Api.Models.Request; using Bit.Api.Models.Request;

View File

@@ -1,4 +1,7 @@
using Bit.Api.Billing.Models.Requests; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.Billing.Models.Requests;
using Bit.Api.Billing.Models.Responses; using Bit.Api.Billing.Models.Responses;
using Bit.Commercial.Core.Billing.Providers.Services; using Bit.Commercial.Core.Billing.Providers.Services;
using Bit.Core; using Bit.Core;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Api.Utilities; using Bit.Api.Utilities;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.Billing.Tax.Models; using Bit.Core.Billing.Tax.Models;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Api.Utilities; using Bit.Api.Utilities;
using Bit.Core.Billing.Models; using Bit.Core.Billing.Models;
using Bit.Core.Enums; using Bit.Core.Enums;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Models.Requests; namespace Bit.Api.Billing.Models.Requests;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Models;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Models;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;
namespace Bit.Api.Billing.Models.Responses; namespace Bit.Api.Billing.Models.Responses;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Models;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Api; using Bit.Core.Models.Api;

View File

@@ -1,4 +1,7 @@
using System.Net; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Net;
using Bit.Api.Billing.Public.Models; using Bit.Api.Billing.Public.Models;
using Bit.Api.Models.Public.Response; using Bit.Api.Models.Public.Response;
using Bit.Core.Billing.Pricing; using Bit.Core.Billing.Pricing;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;
using Bit.Core.Models.StaticStore; using Bit.Core.Models.StaticStore;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Api.Billing.Public.Models; namespace Bit.Api.Billing.Public.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Api.AdminConsole.Models.Response.Organizations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Api.AdminConsole.Models.Response.Organizations;
using Bit.Api.Models.Request; using Bit.Api.Models.Request;
using Bit.Api.Models.Request.Organizations; using Bit.Api.Models.Request.Organizations;
using Bit.Api.Utilities; using Bit.Api.Utilities;

View File

@@ -1,4 +1,7 @@
namespace Bit.Billing; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Billing;
public class BillingSettings public class BillingSettings
{ {

View File

@@ -1,4 +1,7 @@
using System.Text; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text;
using System.Text.Json; using System.Text.Json;
using Bit.Core.Utilities; using Bit.Core.Utilities;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using Bit.Billing.Constants; using Bit.Billing.Constants;
using Bit.Billing.Models; using Bit.Billing.Models;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using System.Reflection; using System.Reflection;
using System.Text; using System.Text;

View File

@@ -1,4 +1,7 @@
using System.Net.Http.Headers; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Net.Http.Headers;
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
using Bit.Core.Repositories; using Bit.Core.Repositories;

View File

@@ -1,4 +1,7 @@
using System.Text; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text;
using Bit.Billing.Models; using Bit.Billing.Models;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;
using Bit.Core.Billing.Services; using Bit.Core.Billing.Services;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Models.Recovery; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Models.Recovery;
using Bit.Billing.Services; using Bit.Billing.Services;
using Bit.Core.Utilities; using Bit.Core.Utilities;
using Microsoft.AspNetCore.Http.HttpResults; using Microsoft.AspNetCore.Http.HttpResults;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Models;
using Bit.Billing.Services; using Bit.Billing.Services;
using Bit.Core.Utilities; using Bit.Core.Utilities;
using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Services; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Services;
using Bit.Core.Repositories; using Bit.Core.Repositories;
using Quartz; using Quartz;
using Stripe; using Stripe;

View File

@@ -1,4 +1,7 @@
namespace Bit.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Billing.Models;
public class BitPayEventModel public class BitPayEventModel
{ {

View File

@@ -1,4 +1,7 @@
namespace Bit.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Billing.Models;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Billing.Models; namespace Bit.Billing.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Billing.Models; namespace Bit.Billing.Models;

View File

@@ -1,4 +1,7 @@
 // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization; using System.Text.Json.Serialization;
namespace Bit.Billing.Models; namespace Bit.Billing.Models;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Billing.Models; namespace Bit.Billing.Models;

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.Web; using System.Web;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Billing.Models.Recovery; namespace Bit.Billing.Models.Recovery;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Billing.Models.Recovery; namespace Bit.Billing.Models.Recovery;

View File

@@ -1,4 +1,7 @@
using System.Text.Json.Serialization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json.Serialization;
namespace Bit.Billing.Models; namespace Bit.Billing.Models;

View File

@@ -1,4 +1,7 @@
using Stripe; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Stripe;
namespace Bit.Billing.Services; namespace Bit.Billing.Services;

View File

@@ -1,4 +1,7 @@
using Stripe; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Stripe;
namespace Bit.Billing.Services; namespace Bit.Billing.Services;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Constants; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Constants;
using Bit.Core; using Bit.Core;
using Bit.Core.AdminConsole.Enums.Provider; using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Constants; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Constants;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;
using Bit.Core.Billing.Pricing; using Bit.Core.Billing.Pricing;
using Bit.Core.Billing.Providers.Entities; using Bit.Core.Billing.Providers.Entities;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Constants; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Constants;
using Bit.Core.Settings; using Bit.Core.Settings;
using Stripe; using Stripe;

View File

@@ -1,4 +1,7 @@
using Bit.Billing.Constants; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Billing.Constants;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;
using Bit.Core.Repositories; using Bit.Core.Repositories;

View File

@@ -1,4 +1,7 @@
using Stripe; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Stripe;
namespace Bit.Billing.Services.Implementations; namespace Bit.Billing.Services.Implementations;

View File

@@ -1,4 +1,7 @@
using Bit.Core; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core;
using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider; using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using System.Net.Http.Headers; using System.Net.Http.Headers;
using Bit.Billing.Services; using Bit.Billing.Services;
using Bit.Billing.Services.Implementations; using Bit.Billing.Services.Implementations;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Billing; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Billing;
public class BillingException( public class BillingException(
string response = null, string response = null,

View File

@@ -1,4 +1,7 @@
using Microsoft.Extensions.Caching.Distributed; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Microsoft.Extensions.Caching.Distributed;
using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection;
namespace Bit.Core.Billing.Caches.Implementations; namespace Bit.Core.Billing.Caches.Implementations;

View File

@@ -1,4 +1,7 @@
using System.Security.Claims; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Security.Claims;
using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
using Bit.Core.Models.Business; using Bit.Core.Models.Business;

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using System.Security.Claims; using System.Security.Claims;
using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;

View File

@@ -1,4 +1,7 @@
using System.Globalization; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Globalization;
using System.Security.Claims; using System.Security.Claims;
using Bit.Core.Billing.Licenses.Models; using Bit.Core.Billing.Licenses.Models;
using Bit.Core.Entities; using Bit.Core.Entities;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Auth.Models.Api.Request.Accounts; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Auth.Models.Api.Request.Accounts;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
namespace Bit.Core.Billing.Models.Api.Requests.Accounts; namespace Bit.Core.Billing.Models.Api.Requests.Accounts;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;
using Stripe; using Stripe;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Enums; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Enums;
using Stripe; using Stripe;
namespace Bit.Core.Billing.Models; namespace Bit.Core.Billing.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Models.Business; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Models.Business;
using Stripe; using Stripe;
namespace Bit.Core.Billing.Models.Business; namespace Bit.Core.Billing.Models.Business;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Auth.Models.Mail; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Auth.Models.Mail;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
using Bit.Core.Enums; using Bit.Core.Enums;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Billing.Models;
public class OffboardingSurveyResponse public class OffboardingSurveyResponse
{ {

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Tax.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Tax.Models;
namespace Bit.Core.Billing.Models; namespace Bit.Core.Billing.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Extensions; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Extensions;
using Bit.Core.Enums; using Bit.Core.Enums;
namespace Bit.Core.Billing.Models; namespace Bit.Core.Billing.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Enums; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Enums;
namespace Bit.Core.Models.StaticStore; namespace Bit.Core.Models.StaticStore;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Enums; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Enums;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Models.Data.Organizations.OrganizationUsers; using Bit.Core.Models.Data.Organizations.OrganizationUsers;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Billing.Providers.Migration.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Billing.Providers.Migration.Models;
public enum ClientMigrationProgress public enum ClientMigrationProgress
{ {

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Providers.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Providers.Entities;
namespace Bit.Core.Billing.Providers.Migration.Models; namespace Bit.Core.Billing.Providers.Migration.Models;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Billing.Providers.Migration.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Billing.Providers.Migration.Models;
public enum ProviderMigrationProgress public enum ProviderMigrationProgress
{ {

View File

@@ -1,4 +1,7 @@
using System.Text.Json; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.Json;
using Bit.Core.AdminConsole.Entities; using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider; using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.Billing.Providers.Migration.Models; using Bit.Core.Billing.Providers.Migration.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.Billing.Constants; using Bit.Core.Billing.Constants;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
using Bit.Core.Billing.Pricing; using Bit.Core.Billing.Pricing;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider; using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.AdminConsole.Enums.Provider; using Bit.Core.AdminConsole.Enums.Provider;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider; using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
using Bit.Core.Billing.Models; using Bit.Core.Billing.Models;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Models;
using Bit.Core.Billing.Tax.Models; using Bit.Core.Billing.Tax.Models;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Enums; using Bit.Core.Enums;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Caches; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Caches;
using Bit.Core.Billing.Constants; using Bit.Core.Billing.Constants;
using Bit.Core.Billing.Models; using Bit.Core.Billing.Models;
using Bit.Core.Billing.Models.Sales; using Bit.Core.Billing.Models.Sales;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Entities.Provider; using Bit.Core.AdminConsole.Entities.Provider;
using Bit.Core.Billing.Caches; using Bit.Core.Billing.Caches;
using Bit.Core.Billing.Constants; using Bit.Core.Billing.Constants;

View File

@@ -1,4 +1,7 @@
using System.Text.RegularExpressions; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.RegularExpressions;
namespace Bit.Core.Billing.Tax.Models; namespace Bit.Core.Billing.Tax.Models;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Billing.Tax.Requests; namespace Bit.Core.Billing.Tax.Requests;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
using Bit.Core.Billing.Enums; using Bit.Core.Billing.Enums;
using Bit.Core.Enums; using Bit.Core.Enums;

View File

@@ -1,4 +1,7 @@
using System.ComponentModel.DataAnnotations; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.ComponentModel.DataAnnotations;
namespace Bit.Core.Billing.Tax.Requests; namespace Bit.Core.Billing.Tax.Requests;

View File

@@ -1,4 +1,7 @@
using System.Text.RegularExpressions; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Text.RegularExpressions;
using Bit.Core.Billing.Tax.Models; using Bit.Core.Billing.Tax.Models;
namespace Bit.Core.Billing.Tax.Services.Implementations; namespace Bit.Core.Billing.Tax.Services.Implementations;

View File

@@ -1,4 +1,7 @@
using Bit.Core.Billing.Models; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.Billing.Models;
using Bit.Core.Billing.Tax.Models; using Bit.Core.Billing.Tax.Models;
using Bit.Core.Services; using Bit.Core.Services;
using Stripe; using Stripe;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Api.OrganizationLicenses; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Api.OrganizationLicenses;
public class SelfHostedOrganizationLicenseRequestModel public class SelfHostedOrganizationLicenseRequestModel
{ {

View File

@@ -1,4 +1,7 @@
using System.Reflection; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Reflection;
using System.Security.Claims; using System.Security.Claims;
using System.Security.Cryptography; using System.Security.Cryptography;
using System.Security.Cryptography.X509Certificates; using System.Security.Cryptography.X509Certificates;

View File

@@ -1,4 +1,7 @@
namespace Bit.Core.Models.Mail.Billing; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
namespace Bit.Core.Models.Mail.Billing;
public class BusinessUnitConversionInviteModel : BaseMailModel public class BusinessUnitConversionInviteModel : BaseMailModel
{ {

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.AdminConsole.Repositories; using Bit.Core.AdminConsole.Repositories;
using Bit.Core.Enums; using Bit.Core.Enums;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;

View File

@@ -1,4 +1,7 @@
using Bit.Core.AdminConsole.Entities; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using Bit.Core.AdminConsole.Entities;
using Bit.Core.Context; using Bit.Core.Context;
using Bit.Core.Entities; using Bit.Core.Entities;
using Bit.Core.Exceptions; using Bit.Core.Exceptions;

View File

@@ -1,4 +1,7 @@
using System.Data; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Data;
using Bit.Core.Billing.Providers.Entities; using Bit.Core.Billing.Providers.Entities;
using Bit.Core.Billing.Providers.Repositories; using Bit.Core.Billing.Providers.Repositories;
using Bit.Core.Settings; using Bit.Core.Settings;

View File

@@ -1,4 +1,7 @@
using System.Data; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using System.Data;
using Bit.Core.Billing.Entities; using Bit.Core.Billing.Entities;
using Bit.Core.Billing.Repositories; using Bit.Core.Billing.Repositories;
using Bit.Core.Settings; using Bit.Core.Settings;

View File

@@ -1,4 +1,7 @@
using AutoMapper; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using AutoMapper;
using Bit.Infrastructure.EntityFramework.AdminConsole.Models; using Bit.Infrastructure.EntityFramework.AdminConsole.Models;
using Bit.Infrastructure.EntityFramework.Platform; using Bit.Infrastructure.EntityFramework.Platform;

View File

@@ -1,4 +1,7 @@
using AutoMapper; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using AutoMapper;
using Bit.Infrastructure.EntityFramework.AdminConsole.Models.Provider; using Bit.Infrastructure.EntityFramework.AdminConsole.Models.Provider;
namespace Bit.Infrastructure.EntityFramework.Billing.Models; namespace Bit.Infrastructure.EntityFramework.Billing.Models;

View File

@@ -1,4 +1,7 @@
using AutoMapper; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using AutoMapper;
using Bit.Infrastructure.EntityFramework.AdminConsole.Models.Provider; using Bit.Infrastructure.EntityFramework.AdminConsole.Models.Provider;
namespace Bit.Infrastructure.EntityFramework.Billing.Models; namespace Bit.Infrastructure.EntityFramework.Billing.Models;

View File

@@ -1,4 +1,7 @@
using AutoMapper; // FIXME: Update this file to be null safe and then delete the line below
#nullable disable
using AutoMapper;
using Bit.Core.Billing.Providers.Entities; using Bit.Core.Billing.Providers.Entities;
using Bit.Core.Billing.Providers.Repositories; using Bit.Core.Billing.Providers.Repositories;
using Bit.Infrastructure.EntityFramework.Repositories; using Bit.Infrastructure.EntityFramework.Repositories;

Some files were not shown because too many files have changed in this diff Show More