mirror of
https://github.com/bitwarden/server.git
synced 2024-12-30 18:17:36 +01:00
remove credit
This commit is contained in:
parent
fb3cdba99e
commit
9cb7a0caaf
@ -70,7 +70,7 @@ namespace Bit.Billing.Controllers
|
||||
CreationDate = sale.CreateTime,
|
||||
OrganizationId = ids.Item1,
|
||||
UserId = ids.Item2,
|
||||
Type = sale.GetCreditFromCustom() ? TransactionType.Credit : TransactionType.Charge,
|
||||
Type = TransactionType.Charge,
|
||||
Gateway = GatewayType.PayPal,
|
||||
GatewayId = sale.Id,
|
||||
PaymentMethodType = PaymentMethodType.PayPal,
|
||||
|
@ -218,11 +218,6 @@ namespace Bit.Billing.Utilities
|
||||
|
||||
return new Tuple<Guid?, Guid?>(orgId, userId);
|
||||
}
|
||||
|
||||
public bool GetCreditFromCustom()
|
||||
{
|
||||
return Custom.Contains("credit:true");
|
||||
}
|
||||
}
|
||||
|
||||
public class AmountInfo
|
||||
|
Loading…
Reference in New Issue
Block a user