1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 17:42:49 -05:00

rename billing classes

This commit is contained in:
Kyle Spearrin
2019-02-10 21:23:37 -05:00
parent f0fa1e00fb
commit f225b5d46a
4 changed files with 15 additions and 15 deletions

View File

@ -884,7 +884,7 @@ namespace Bit.Core.Services
return createdCustomer;
}
public async Task<BillingInfo.BillingInvoice> GetUpcomingInvoiceAsync(ISubscriber subscriber)
public async Task<BillingInfo.BillingInvoiceInfo> GetUpcomingInvoiceAsync(ISubscriber subscriber)
{
if(!string.IsNullOrWhiteSpace(subscriber.GatewaySubscriptionId))
{
@ -903,7 +903,7 @@ namespace Bit.Core.Services
});
if(upcomingInvoice != null)
{
return new BillingInfo.BillingInvoice(upcomingInvoice);
return new BillingInfo.BillingInvoiceInfo(upcomingInvoice);
}
}
catch(StripeException) { }
@ -985,7 +985,7 @@ namespace Bit.Core.Services
Limit = 20
});
billingInfo.Invoices = invoices?.Data?.OrderByDescending(i => i.Date)
.Select(i => new BillingInfo.BillingInvoice2(i));
.Select(i => new BillingInfo.BillingInvoice(i));
}
}
@ -1005,7 +1005,7 @@ namespace Bit.Core.Services
new UpcomingInvoiceOptions { CustomerId = subscriber.GatewayCustomerId });
if(upcomingInvoice != null)
{
billingInfo.UpcomingInvoice = new BillingInfo.BillingInvoice(upcomingInvoice);
billingInfo.UpcomingInvoice = new BillingInfo.BillingInvoiceInfo(upcomingInvoice);
}
}
catch(StripeException) { }