1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-30 18:17:36 +01:00

remove credit

This commit is contained in:
Kyle Spearrin 2019-02-01 23:29:34 -05:00
parent fb3cdba99e
commit 9cb7a0caaf
2 changed files with 1 additions and 6 deletions

View File

@ -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,

View File

@ -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