1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-24 12:35:25 +01:00
This commit is contained in:
Jonas Hendrickx 2024-11-21 14:02:28 +01:00
parent 33befe24a5
commit 7fc9d51220
4 changed files with 4 additions and 4 deletions

View File

@ -80,7 +80,7 @@ public class AccountsBillingController(
} }
[HttpPost("preview-invoice")] [HttpPost("preview-invoice")]
public async Task<IResult> PreviewInvoiceAsync([FromBody] PreviewInvoiceRequestBody model) public async Task<IResult> PreviewInvoiceAsync([FromBody] PreviewIndividualInvoiceRequestBody model)
{ {
var user = await userService.GetUserByPrincipalAsync(User); var user = await userService.GetUserByPrincipalAsync(User);
if (user == null) if (user == null)

View File

@ -2,7 +2,7 @@
namespace Bit.Core.Billing.Models.Api.Requests.Accounts; namespace Bit.Core.Billing.Models.Api.Requests.Accounts;
public class PreviewInvoiceRequestBody public class PreviewIndividualInvoiceRequestBody
{ {
[Required] [Required]
public PasswordManagerRequestModel PasswordManager { get; set; } public PasswordManagerRequestModel PasswordManager { get; set; }

View File

@ -61,5 +61,5 @@ public interface IPaymentService
Task<bool> RisksSubscriptionFailure(Organization organization); Task<bool> RisksSubscriptionFailure(Organization organization);
Task<bool> HasSecretsManagerStandalone(Organization organization); Task<bool> HasSecretsManagerStandalone(Organization organization);
Task<(DateTime?, DateTime?)> GetSuspensionDateAsync(Stripe.Subscription subscription); Task<(DateTime?, DateTime?)> GetSuspensionDateAsync(Stripe.Subscription subscription);
Task<PreviewInvoiceResponseModel> PreviewInvoiceAsync(PreviewInvoiceRequestBody parameters, string gatewayCustomerId, string gatewaySubscriptionId); Task<PreviewInvoiceResponseModel> PreviewInvoiceAsync(PreviewIndividualInvoiceRequestBody parameters, string gatewayCustomerId, string gatewaySubscriptionId);
} }

View File

@ -1883,7 +1883,7 @@ public class StripePaymentService : IPaymentService
} }
public async Task<PreviewInvoiceResponseModel> PreviewInvoiceAsync( public async Task<PreviewInvoiceResponseModel> PreviewInvoiceAsync(
PreviewInvoiceRequestBody parameters, PreviewIndividualInvoiceRequestBody parameters,
string gatewayCustomerId, string gatewayCustomerId,
string gatewaySubscriptionId) string gatewaySubscriptionId)
{ {