mirror of
https://github.com/bitwarden/server.git
synced 2025-04-21 04:55:08 -05:00
Removed payment_behavior, errant whitespace
This commit is contained in:
parent
a024b43cea
commit
9ef39bcadb
@ -336,7 +336,7 @@ namespace Bit.Core.Services
|
|||||||
var prorationDate = DateTime.UtcNow;
|
var prorationDate = DateTime.UtcNow;
|
||||||
var seatItem = sub.Items?.Data?.FirstOrDefault(i => i.Plan.Id == plan.StripeSeatPlanId);
|
var seatItem = sub.Items?.Data?.FirstOrDefault(i => i.Plan.Id == plan.StripeSeatPlanId);
|
||||||
|
|
||||||
var subResponse = await subscriptionService.UpdateAsync(sub.Id, new SubscriptionUpdateOptions()
|
var subResponse = await subscriptionService.UpdateAsync(sub.Id, new SubscriptionUpdateOptions
|
||||||
{
|
{
|
||||||
Items = new List<SubscriptionItemOptions>
|
Items = new List<SubscriptionItemOptions>
|
||||||
{
|
{
|
||||||
@ -349,7 +349,6 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
ProrationBehavior = "always_invoice",
|
ProrationBehavior = "always_invoice",
|
||||||
PaymentBehavior = "allow_incomplete",
|
|
||||||
DaysUntilDue = 1,
|
DaysUntilDue = 1,
|
||||||
CollectionMethod = "send_invoice",
|
CollectionMethod = "send_invoice",
|
||||||
ProrationDate = prorationDate,
|
ProrationDate = prorationDate,
|
||||||
|
@ -722,7 +722,6 @@ namespace Bit.Core.Services
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
ProrationBehavior = "always_invoice",
|
ProrationBehavior = "always_invoice",
|
||||||
PaymentBehavior = "allow_incomplete",
|
|
||||||
DaysUntilDue = 1,
|
DaysUntilDue = 1,
|
||||||
CollectionMethod = "send_invoice",
|
CollectionMethod = "send_invoice",
|
||||||
ProrationDate = prorationDate,
|
ProrationDate = prorationDate,
|
||||||
@ -870,11 +869,11 @@ namespace Bit.Core.Services
|
|||||||
{
|
{
|
||||||
// Finalize the invoice (from Draft) w/o auto-advance so we
|
// Finalize the invoice (from Draft) w/o auto-advance so we
|
||||||
// can attempt payment manually.
|
// can attempt payment manually.
|
||||||
invoice = await invoiceService.FinalizeInvoiceAsync(invoice.Id, new InvoiceFinalizeOptions()
|
invoice = await invoiceService.FinalizeInvoiceAsync(invoice.Id, new InvoiceFinalizeOptions
|
||||||
{
|
{
|
||||||
AutoAdvance = false,
|
AutoAdvance = false,
|
||||||
});
|
});
|
||||||
var invoicePayOptions = new InvoicePayOptions()
|
var invoicePayOptions = new InvoicePayOptions
|
||||||
{
|
{
|
||||||
PaymentMethod = cardPaymentMethodId,
|
PaymentMethod = cardPaymentMethodId,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user