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